3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/sip/default.nix
Orivej Desh bf1a563af0 pythonPackages.sip: make sip-module name overridable
The author of sip wants it to be a private dependency of other packages by
making it importable under different names.
2018-12-27 11:17:22 +00:00

30 lines
831 B
Nix

{ lib, fetchurl, buildPythonPackage, python, isPyPy, sip-module ? "sip" }:
buildPythonPackage rec {
pname = sip-module;
version = "4.19.13";
format = "other";
disabled = isPyPy;
src = fetchurl {
url = "mirror://sourceforge/pyqt/sip/sip-${version}/sip-${version}.tar.gz";
sha256 = "0pniq03jk1n5bs90yjihw3s3rsmjd8m89y9zbnymzgwrcl2sflz3";
};
configurePhase = ''
${python.executable} ./configure.py \
--sip-module ${sip-module} \
-d $out/lib/${python.libPrefix}/site-packages \
-b $out/bin -e $out/include
'';
meta = with lib; {
description = "Creates C++ bindings for Python modules";
homepage = "http://www.riverbankcomputing.co.uk/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ lovek323 sander ];
platforms = platforms.all;
};
}