hpp-fcl: use pythonImportsCheckHook

This commit is contained in:
Guilhem Saurel 2024-09-17 15:49:24 +02:00
parent f56b1eff0a
commit 547fc589b9

View File

@ -31,7 +31,10 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
cmake
doxygen
] ++ lib.optionals pythonSupport [ python3Packages.numpy ];
] ++ lib.optionals pythonSupport [
python3Packages.numpy
python3Packages.pythonImportsCheckHook
];
propagatedBuildInputs =
[
@ -56,11 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
];
doCheck = true;
# pythonImportsCheck, but in stdenv.mkDerivation
postInstall = lib.optionalString pythonSupport ''
PYTHONPATH=$out/${python3Packages.python.sitePackages}:$PYTHONPATH
python -c "import hppfcl"
'';
pythonImportsCheck = [ "hppfcl" ];
outputs = [
"dev"