2019-09-05 22:43:33 -04:00
|
|
|
{ stdenv, lib, pythonPackages }:
|
|
|
|
{ buildType ? "catkin"
|
|
|
|
, nativeBuildInputs ? []
|
2019-04-16 15:02:56 -04:00
|
|
|
, passthru ? {}
|
2019-03-21 00:23:14 -04:00
|
|
|
, ...
|
2019-09-05 22:43:33 -04:00
|
|
|
}@args:
|
|
|
|
|
|
|
|
(if buildType == "ament_python" then pythonPackages.buildPythonPackage
|
|
|
|
else stdenv.mkDerivation) (args // {
|
|
|
|
# Too difficult to fix all the problems with the tests in each package
|
|
|
|
doCheck = false;
|
2019-04-16 15:02:56 -04:00
|
|
|
|
2019-09-28 15:46:34 -04:00
|
|
|
# ROS is sloppy with specifying build/runtime dependencies and
|
|
|
|
# buildPythonPackage turns on strictDeps by default
|
|
|
|
# FIXME: figure out a way to avoid this to eventually allow cross-compiling
|
|
|
|
strictDeps = false;
|
|
|
|
|
2019-04-16 15:02:56 -04:00
|
|
|
passthru = passthru // {
|
|
|
|
rosPackage = true;
|
|
|
|
};
|
2019-09-28 15:46:34 -04:00
|
|
|
} // (if buildType == "ament_python" then {
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
} else {
|
2019-09-05 22:43:33 -04:00
|
|
|
nativeBuildInputs = [ pythonPackages.wrapPython ] ++ nativeBuildInputs;
|
2019-09-28 15:46:34 -04:00
|
|
|
}))
|