1{ lib, fetchurl, buildPythonPackage, python, isPyPy }:
2
3if isPyPy then throw "sip not supported for interpreter ${python.executable}" else buildPythonPackage rec {
4 pname = "sip";
5 version = "4.19.6";
6 name = "${pname}-${version}";
7 format = "other";
8
9 src = fetchurl {
10 url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz";
11 sha256 = "0nlj0zbvmzliyhhspqwf2bjvcnpq4agx4s47php7ishv32p2gnlx";
12 };
13
14 configurePhase = ''
15 ${python.executable} ./configure.py \
16 -d $out/lib/${python.libPrefix}/site-packages \
17 -b $out/bin -e $out/include
18 '';
19
20 meta = with lib; {
21 description = "Creates C++ bindings for Python modules";
22 homepage = "http://www.riverbankcomputing.co.uk/";
23 license = licenses.gpl2Plus;
24 maintainers = with maintainers; [ lovek323 sander ];
25 platforms = platforms.all;
26 };
27}