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

48 lines
808 B
Nix

{
lib,
toPythonModule,
pythonImportsCheckHook,
coal,
boost,
eigenpy,
pylatexenc,
numpy,
buildStandalone ? true,
}:
toPythonModule (
coal.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 ++ [
numpy
pylatexenc
];
propagatedBuildInputs = [
boost
eigenpy
]
++ super.propagatedBuildInputs
++ lib.optional buildStandalone coal;
nativeCheckInputs = [
pythonImportsCheckHook
];
pythonImportsCheck = [
"coal"
"hppfcl"
];
})
)