1 { lib, fetchurl, buildPythonPackage, python, isPyPy, sip-module ? "sip" }:
3 buildPythonPackage rec {
11 url = "https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz";
12 sha256 = "1ra15vb5i9gkg2vdvh16cq9x2mmzw1yi3xphxs8q34q1pf83gkgd";
16 ${python.executable} ./configure.py \
17 --sip-module ${sip-module} \
18 -d $out/${python.sitePackages} \
19 -b $out/bin -e $out/include
22 enableParallelBuilding = true;
24 installCheckPhase = let
29 imports = lib.concatMapStrings (module: "import ${module};") modules;
31 echo "Checking whether modules can be imported..."
32 PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ${python.interpreter} -c "${imports}"
38 description = "Creates C++ bindings for Python modules";
39 homepage = "http://www.riverbankcomputing.co.uk/";
40 license = licenses.gpl2Plus;
41 maintainers = with maintainers; [ lovek323 sander ];
42 platforms = platforms.all;