python3.pkgs.sip_4: use pythonImportsCheck

This commit is contained in:
Alyssa Ross 2023-02-27 10:12:19 +00:00
parent 809c0ce0cd
commit cf91b242d2

View file

@ -21,16 +21,7 @@ buildPythonPackage rec {
enableParallelBuilding = true;
installCheckPhase = let
modules = [
sip-module
"sipconfig"
];
imports = lib.concatMapStrings (module: "import ${module};") modules;
in ''
echo "Checking whether modules can be imported..."
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ${python.interpreter} -c "${imports}"
'';
pythonImportsCheck = [ sip-module "sipconfig" ];
doCheck = true;