Files
nixpkgs/pkgs/development/python-modules/crocoddyl/default.nix
T
Guilhem Saurel 71bdd9a09f python3Packages.crocoddyl: depend on pkgs.crocoddyl
instead of rebuild, use the new BUILD_STANDALONE_PYTHON_INTERFACE feature.
2025-10-15 19:54:47 +02:00

55 lines
901 B
Nix

{
lib,
toPythonModule,
pythonImportsCheckHook,
crocoddyl,
example-robot-data,
ffmpeg,
matplotlib,
nbconvert,
nbformat,
ipykernel,
python,
scipy,
}:
toPythonModule (
crocoddyl.overrideAttrs (super: {
pname = "py-${super.pname}";
cmakeFlags = super.cmakeFlags ++ [
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
];
# those are used by CMake at configure/build time
nativeBuildInputs = super.nativeBuildInputs ++ [
python
];
propagatedBuildInputs = super.propagatedBuildInputs ++ [
crocoddyl
example-robot-data
];
nativeCheckInputs = [
ffmpeg
pythonImportsCheckHook
];
checkInputs = [
matplotlib
nbconvert
nbformat
ipykernel
scipy
];
pythonImportsCheck = [
"crocoddyl"
];
})
)