2014-09-06 22:24:56 +02:00
|
|
|
{ stdenv, fetchurl, python, isPyPy }:
|
2014-07-07 08:20:15 +02:00
|
|
|
|
2014-09-06 22:24:56 +02:00
|
|
|
if isPyPy then throw "sip not supported for interpreter ${python.executable}" else stdenv.mkDerivation rec {
|
2014-12-22 23:36:55 +01:00
|
|
|
name = "sip-4.16.4";
|
2014-07-07 08:20:15 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz";
|
2014-12-22 23:36:55 +01:00
|
|
|
sha256 = "1xapklcz5ndilax0gr2h1fqzhdzh7yvxfb3y0rxfcag1qlzl9nnf";
|
2014-07-07 08:20:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
${python.executable} ./configure.py \
|
|
|
|
-d $out/lib/${python.libPrefix}/site-packages \
|
|
|
|
-b $out/bin -e $out/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ python ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|