From d791bfec05086daae182b284fd61d0d0cd9a2185 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 26 Aug 2024 19:20:07 +0200 Subject: [PATCH] hpp-fcl: fix import check --- pkgs/development/libraries/hpp-fcl/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/hpp-fcl/default.nix b/pkgs/development/libraries/hpp-fcl/default.nix index d5e96966e4d5..31e403207f65 100644 --- a/pkgs/development/libraries/hpp-fcl/default.nix +++ b/pkgs/development/libraries/hpp-fcl/default.nix @@ -55,9 +55,11 @@ stdenv.mkDerivation (finalAttrs: { ]; doCheck = true; - pythonImportsCheck = lib.optionals (!pythonSupport) [ - "hppfcl" - ]; + # pythonImportsCheck, but in stdenv.mkDerivation + postInstall = lib.optionalString pythonSupport '' + PYTHONPATH=$out/${python3Packages.python.sitePackages}:$PYTHONPATH + python -c "import hppfcl" + ''; outputs = [ "dev" "out" "doc" ]; postFixup = ''