diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/sip/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/sip/default.nix | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/sip/default.nix b/nixpkgs/pkgs/development/python-modules/sip/default.nix index 2b034897a784..cb1575f9349d 100644 --- a/nixpkgs/pkgs/development/python-modules/sip/default.nix +++ b/nixpkgs/pkgs/development/python-modules/sip/default.nix @@ -2,25 +2,38 @@ buildPythonPackage rec { pname = sip-module; - version = "4.19.13"; + version = "4.19.18"; format = "other"; disabled = isPyPy; src = fetchurl { - url = "mirror://sourceforge/pyqt/sip/sip-${version}/sip-${version}.tar.gz"; - sha256 = "0pniq03jk1n5bs90yjihw3s3rsmjd8m89y9zbnymzgwrcl2sflz3"; + url = "https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz"; + sha256 = "07kyd56xgbb40ljb022rq82shgxprlbl0z27mpf1b6zd00w8dgf0"; }; configurePhase = '' ${python.executable} ./configure.py \ --sip-module ${sip-module} \ - -d $out/lib/${python.libPrefix}/site-packages \ + -d $out/${python.sitePackages} \ -b $out/bin -e $out/include ''; 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}" + ''; + + doCheck = true; + meta = with lib; { description = "Creates C++ bindings for Python modules"; homepage = "http://www.riverbankcomputing.co.uk/"; |