at v192 1.0 kB view raw
1{ stdenv, fetchurl, python, isPyPy }: 2 3if isPyPy then throw "sip not supported for interpreter ${python.executable}" else stdenv.mkDerivation rec { 4 name = "sip-4.14.7"; # kde410.pykde4 doesn't build with 4.15 5 6 src = fetchurl { 7 url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz"; 8 sha256 = "1dv1sdwfmnq481v80k2951amzs9s87d4qhk0hpwrhb1sllh92rh5"; 9 }; 10 11 configurePhase = stdenv.lib.optionalString stdenv.isDarwin '' 12 # prevent sip from complaining about python not being built as a framework 13 sed -i -e 1564,1565d siputils.py 14 '' + '' 15 ${python.executable} ./configure.py \ 16 -d $out/lib/${python.libPrefix}/site-packages \ 17 -b $out/bin -e $out/include 18 ''; 19 20 buildInputs = [ python ]; 21 22 meta = with stdenv.lib; { 23 description = "Creates C++ bindings for Python modules"; 24 homepage = "http://www.riverbankcomputing.co.uk/"; 25 license = licenses.gpl2Plus; 26 maintainers = with maintainers; [ lovek323 sander urkud ]; 27 platforms = platforms.all; 28 }; 29}