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.16.6"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz"; 8 sha256 = "0lj5f581dkwswlwpg7lbicqf940dvrp8vjbkhmyywd99ynxb4zcc"; 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 buildInputs = [ python ]; 18 19 meta = with stdenv.lib; { 20 description = "Creates C++ bindings for Python modules"; 21 homepage = "http://www.riverbankcomputing.co.uk/"; 22 license = licenses.gpl2Plus; 23 maintainers = with maintainers; [ lovek323 sander urkud ]; 24 platforms = platforms.all; 25 }; 26}