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