Files
Guilhem Saurel e4855e662f python3Packages.coal: Revert fix build with boost 1.89
This reverts commit eb953e2372.
Fixed upstream in 3.0.3
2026-05-05 18:54:33 +02: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"
];
})
)