Files
nixpkgs/pkgs/development/python-modules/ndcurves/default.nix
T
2025-12-12 09:23:28 +01:00

42 lines
781 B
Nix

{
lib,
toPythonModule,
pythonImportsCheckHook,
ndcurves,
boost,
pinocchio,
python,
buildStandalone ? true,
}:
toPythonModule (
ndcurves.overrideAttrs (super: {
pname = "py-${super.pname}";
cmakeFlags = super.cmakeFlags ++ [
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)
];
# those are used by CMake at configure/build time
nativeBuildInputs = super.nativeBuildInputs ++ [
python
];
propagatedBuildInputs = [
boost
pinocchio
]
++ super.propagatedBuildInputs
++ lib.optional buildStandalone ndcurves;
nativeCheckInputs = [
pythonImportsCheckHook
];
pythonImportsCheck = [
"ndcurves"
];
})
)