python.pkgs.pycairo: 1.15.4 → 1.16.3

This commit is contained in:
Jan Tojnar 2018-04-07 01:53:34 +02:00
parent 2b6596962b
commit 8bf523e17c
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -2,8 +2,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pycairo"; pname = "pycairo";
version = "1.15.4"; version = "1.16.3";
name = "${pname}-${version}";
disabled = isPyPy; disabled = isPyPy;
@ -11,13 +10,21 @@ buildPythonPackage rec {
owner = "pygobject"; owner = "pygobject";
repo = "pycairo"; repo = "pycairo";
rev = "v${version}"; rev = "v${version}";
sha256 = "02vzmfxx8nl6dbwzc911wcj7hqspgqz6v9xmq6579vwfla0vaglv"; sha256 = "0clk6wrfls3fa1xrn844762qfaw6gs4ivwkrfysidbzmlbxhpngl";
}; };
postPatch = '' # We need to create the pkgconfig file but it cannot be installed as a wheel since wheels
# we are unable to pass --prefix to bdist_wheel # are supposed to be relocatable and do not support --prefix option
# see https://github.com/NixOS/nixpkgs/pull/32034#discussion_r153285955 buildPhase = ''
substituteInPlace setup.py --replace '"prefix": self.install_base' "'prefix': '$out'" ${python.interpreter} setup.py build
'';
installPhase = ''
${python.interpreter} setup.py install --skip-build --prefix="$out" --optimize=1
'';
checkPhase = ''
${python.interpreter} setup.py test
''; '';
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];