Merge branch 'staging' into fix-ncurses-darwin-extensions

This commit is contained in:
Matthew Justin Bauer
2018-05-02 15:40:38 -05:00
committed by GitHub
251 changed files with 2068 additions and 1387 deletions

View File

@@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, python, packaging, unittest2 }:
buildPythonPackage rec {
pname = "deprecation";
version = "2.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "e8d0dc5a17d7d551730e5f23ff3a53fc9e438364b9efb47d41c3e9b05522eabe";
};
propagatedBuildInputs = [ packaging ];
checkInputs = [ unittest2 ];
checkPhase = ''
${python.interpreter} -m unittest discover
'';
meta = with lib; {
description = "A library to handle automated deprecations";
homepage = https://deprecation.readthedocs.io/;
license = licenses.asl20;
};
}

View File

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