2014-09-06 21:24:56 +01:00
|
|
|
{ stdenv, fetchurl, python, isPyPy }:
|
2014-07-07 07:20:15 +01:00
|
|
|
|
2014-09-06 21:24:56 +01:00
|
|
|
if isPyPy then throw "sip not supported for interpreter ${python.executable}" else stdenv.mkDerivation rec {
|
2015-06-27 22:27:26 +01:00
|
|
|
name = "sip-4.16.6";
|
2014-07-07 07:20:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz";
|
2015-06-27 22:27:26 +01:00
|
|
|
sha256 = "0lj5f581dkwswlwpg7lbicqf940dvrp8vjbkhmyywd99ynxb4zcc";
|
2014-07-07 07:20:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
${python.executable} ./configure.py \
|
|
|
|
-d $out/lib/${python.libPrefix}/site-packages \
|
|
|
|
-b $out/bin -e $out/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ python ];
|
|
|
|
|
2016-05-14 02:29:22 +01:00
|
|
|
passthru.pythonPath = [];
|
|
|
|
|
2014-07-07 07:20:15 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Creates C++ bindings for Python modules";
|
|
|
|
homepage = "http://www.riverbankcomputing.co.uk/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ lovek323 sander urkud ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|