nixpkgs-suyu/pkgs/development/python-modules/sip/default.nix

28 lines
849 B
Nix
Raw Normal View History

{ lib, fetchurl, buildPythonPackage, python, isPyPy }:
if isPyPy then throw "sip not supported for interpreter ${python.executable}" else buildPythonPackage rec {
pname = "sip";
2017-12-17 22:15:40 +01:00
version = "4.19.6";
name = "${pname}-${version}";
format = "other";
src = fetchurl {
url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz";
2017-12-17 22:15:40 +01:00
sha256 = "0nlj0zbvmzliyhhspqwf2bjvcnpq4agx4s47php7ishv32p2gnlx";
};
configurePhase = ''
${python.executable} ./configure.py \
-d $out/lib/${python.libPrefix}/site-packages \
-b $out/bin -e $out/include
'';
2016-08-31 11:01:16 +02:00
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;
};
}