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