pythonPackages.sip: 4.19.14 -> 4.19.18
This commit is contained in:
parent
2255e9a6ba
commit
03a820d3ea
|
@ -2,25 +2,38 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = sip-module;
|
pname = sip-module;
|
||||||
version = "4.19.14";
|
version = "4.19.18";
|
||||||
format = "other";
|
format = "other";
|
||||||
|
|
||||||
disabled = isPyPy;
|
disabled = isPyPy;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz";
|
url = "https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz";
|
||||||
sha256 = "11xgs3rf5qh5qh459biwnc2j5y08jps3j0p6hcgi7f63pifpdwqf";
|
sha256 = "07kyd56xgbb40ljb022rq82shgxprlbl0z27mpf1b6zd00w8dgf0";
|
||||||
};
|
};
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
${python.executable} ./configure.py \
|
${python.executable} ./configure.py \
|
||||||
--sip-module ${sip-module} \
|
--sip-module ${sip-module} \
|
||||||
-d $out/lib/${python.libPrefix}/site-packages \
|
-d $out/${python.sitePackages} \
|
||||||
-b $out/bin -e $out/include
|
-b $out/bin -e $out/include
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
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; {
|
meta = with lib; {
|
||||||
description = "Creates C++ bindings for Python modules";
|
description = "Creates C++ bindings for Python modules";
|
||||||
homepage = "http://www.riverbankcomputing.co.uk/";
|
homepage = "http://www.riverbankcomputing.co.uk/";
|
||||||
|
|
Loading…
Reference in New Issue