2018-12-26 19:01:15 -08:00
|
|
|
{ lib, fetchurl, buildPythonPackage, python, isPyPy, sip-module ? "sip" }:
|
2009-02-25 08:05:13 -08:00
|
|
|
|
2018-07-01 07:39:07 -07:00
|
|
|
buildPythonPackage rec {
|
2018-12-26 19:01:15 -08:00
|
|
|
pname = sip-module;
|
2018-10-29 06:37:57 -07:00
|
|
|
version = "4.19.13";
|
2017-03-21 05:01:17 -07:00
|
|
|
format = "other";
|
2014-01-08 00:06:08 -08:00
|
|
|
|
2018-07-01 07:39:07 -07:00
|
|
|
disabled = isPyPy;
|
|
|
|
|
2009-02-25 08:05:13 -08:00
|
|
|
src = fetchurl {
|
2018-12-26 19:01:15 -08:00
|
|
|
url = "mirror://sourceforge/pyqt/sip/sip-${version}/sip-${version}.tar.gz";
|
2018-10-29 06:37:57 -07:00
|
|
|
sha256 = "0pniq03jk1n5bs90yjihw3s3rsmjd8m89y9zbnymzgwrcl2sflz3";
|
2009-02-25 08:05:13 -08:00
|
|
|
};
|
2013-07-03 22:07:02 -07:00
|
|
|
|
2016-08-17 09:35:29 -07:00
|
|
|
configurePhase = ''
|
2014-01-08 00:06:08 -08:00
|
|
|
${python.executable} ./configure.py \
|
2018-12-26 19:01:15 -08:00
|
|
|
--sip-module ${sip-module} \
|
2014-01-08 00:06:08 -08:00
|
|
|
-d $out/lib/${python.libPrefix}/site-packages \
|
2013-07-03 22:07:02 -07:00
|
|
|
-b $out/bin -e $out/include
|
|
|
|
'';
|
2014-01-08 00:06:08 -08:00
|
|
|
|
2018-12-27 05:10:36 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-08-31 02:01:16 -07:00
|
|
|
meta = with lib; {
|
2009-09-10 10:00:30 -07:00
|
|
|
description = "Creates C++ bindings for Python modules";
|
2014-01-08 00:06:08 -08:00
|
|
|
homepage = "http://www.riverbankcomputing.co.uk/";
|
2013-07-13 16:08:03 -07:00
|
|
|
license = licenses.gpl2Plus;
|
2017-03-27 10:11:17 -07:00
|
|
|
maintainers = with maintainers; [ lovek323 sander ];
|
2013-07-03 22:07:02 -07:00
|
|
|
platforms = platforms.all;
|
2009-09-10 10:00:30 -07:00
|
|
|
};
|
2009-02-25 08:05:13 -08:00
|
|
|
}
|