2010-03-23 15:04:47 +01:00
|
|
|
{ stdenv, fetchurl, python }:
|
2009-02-25 17:05:13 +01:00
|
|
|
|
2010-04-11 23:03:51 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-16 08:56:08 +01:00
|
|
|
name = "sip-4.14.7"; # kde410.pykde4 doesn't build with 4.15
|
2014-01-08 09:06:08 +01:00
|
|
|
|
2009-02-25 17:05:13 +01:00
|
|
|
src = fetchurl {
|
2014-01-08 09:06:08 +01:00
|
|
|
url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz";
|
2014-01-16 08:56:08 +01:00
|
|
|
sha256 = "1dv1sdwfmnq481v80k2951amzs9s87d4qhk0hpwrhb1sllh92rh5";
|
2009-02-25 17:05:13 +01:00
|
|
|
};
|
2013-07-04 07:07:02 +02:00
|
|
|
|
|
|
|
configurePhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
# prevent sip from complaining about python not being built as a framework
|
|
|
|
sed -i -e 1564,1565d siputils.py
|
|
|
|
'' + ''
|
2014-01-08 09:06:08 +01:00
|
|
|
${python.executable} ./configure.py \
|
|
|
|
-d $out/lib/${python.libPrefix}/site-packages \
|
2013-07-04 07:07:02 +02:00
|
|
|
-b $out/bin -e $out/include
|
|
|
|
'';
|
2014-01-08 09:06:08 +01:00
|
|
|
|
2009-02-25 17:05:13 +01:00
|
|
|
buildInputs = [ python ];
|
2014-01-08 09:06:08 +01:00
|
|
|
|
2013-07-04 07:07:02 +02:00
|
|
|
meta = with stdenv.lib; {
|
2009-09-10 19:00:30 +02:00
|
|
|
description = "Creates C++ bindings for Python modules";
|
2014-01-08 09:06:08 +01:00
|
|
|
homepage = "http://www.riverbankcomputing.co.uk/";
|
2013-07-14 01:08:03 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2013-07-04 07:07:02 +02:00
|
|
|
maintainers = with maintainers; [ lovek323 sander urkud ];
|
|
|
|
platforms = platforms.all;
|
2009-09-10 19:00:30 +02:00
|
|
|
};
|
2009-02-25 17:05:13 +01:00
|
|
|
}
|