python3.pkgs.sip_4: use pythonImportsCheck
This commit is contained in:
parent
809c0ce0cd
commit
cf91b242d2
1 changed files with 1 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue