Merge pull request #60280 from marsam/fix-build-pytest-dependency

pythonPackages.pytest-dependency: fix build
This commit is contained in:
Mario Rodas 2019-05-03 14:37:45 -05:00 committed by GitHub
commit d4cbc6707c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';