Merge master into staging-next
This commit is contained in:
@@ -25,18 +25,19 @@ buildPythonPackage rec {
|
||||
|
||||
preConfigure = ''
|
||||
sed \
|
||||
-e "s/^origincdirs = .*/origincdirs = []/" \
|
||||
-e "s/^origlibdirs = .*/origlibdirs = []/" \
|
||||
-e "s/origincdirs = .*/origincdirs = []/" \
|
||||
-e "s/origlibdirs = .*/origlibdirs = []/" \
|
||||
-e "/'\/lib\/i386-linux-gnu', '\/lib\/x86_64-linux-gnu']/d" \
|
||||
-e "/\/include\/smpeg/d" \
|
||||
-i config_unix.py
|
||||
-i buildconfig/config_unix.py
|
||||
${lib.concatMapStrings (dep: ''
|
||||
sed \
|
||||
-e "/^origincdirs =/aorigincdirs += ['${lib.getDev dep}/include']" \
|
||||
-e "/^origlibdirs =/aoriglibdirs += ['${lib.getLib dep}/lib']" \
|
||||
-i config_unix.py
|
||||
-e "/origincdirs =/a\ origincdirs += ['${lib.getDev dep}/include']" \
|
||||
-e "/origlibdirs =/a\ origlibdirs += ['${lib.getLib dep}/lib']" \
|
||||
-i buildconfig/config_unix.py
|
||||
'') buildInputs
|
||||
}
|
||||
LOCALBASE=/ ${python.interpreter} config.py
|
||||
LOCALBASE=/ ${python.interpreter} buildconfig/config.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pytest }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.4.0";
|
||||
@@ -9,8 +9,19 @@ buildPythonPackage rec {
|
||||
sha256 = "bda0ef48e6a44c091399b12ab4a7e580d2dd8294c222b301f88d7d57f47ba142";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix tests for pytest>=4.2.0. Remove with the next release
|
||||
(fetchpatch {
|
||||
url = "https://github.com/RKrahl/pytest-dependency/commit/089395bf77e629ee789666361ee12395d840252c.patch";
|
||||
sha256 = "1nkha2gndrr3mx11kx2ipxhphqd6wr25hvkrfwzyrispqfhgl0wm";
|
||||
excludes = [ "doc/src/changelog.rst" ];
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ pytest ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
@@ -13,9 +13,9 @@ buildPythonPackage rec {
|
||||
substituteInPlace setup.py --replace "six==1.10.0" "six>=1.10.0"
|
||||
'';
|
||||
|
||||
# Do not test on Python 2 darwin because the tests suite gets stuck
|
||||
# https://github.com/JBKahn/rednose/issues/23
|
||||
doCheck = !(stdenv.isDarwin && isPy27);
|
||||
# Do not test on Python 2 because the tests suite gets stuck
|
||||
# https://github.com/NixOS/nixpkgs/issues/60786
|
||||
doCheck = !(isPy27);
|
||||
|
||||
checkInputs = [ six ];
|
||||
propagatedBuildInputs = [ nose colorama termstyle ];
|
||||
|
||||
Reference in New Issue
Block a user