Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 35 lines 936 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, pytest }: 2 3buildPythonPackage rec { 4 version = "0.4.0"; 5 pname = "pytest-dependency"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "bda0ef48e6a44c091399b12ab4a7e580d2dd8294c222b301f88d7d57f47ba142"; 10 }; 11 12 patches = [ 13 # Fix tests for pytest>=4.2.0. Remove with the next release 14 (fetchpatch { 15 url = "https://github.com/RKrahl/pytest-dependency/commit/089395bf77e629ee789666361ee12395d840252c.patch"; 16 sha256 = "1nkha2gndrr3mx11kx2ipxhphqd6wr25hvkrfwzyrispqfhgl0wm"; 17 excludes = [ "doc/src/changelog.rst" ]; 18 }) 19 ]; 20 21 propagatedBuildInputs = [ pytest ]; 22 23 checkInputs = [ pytest ]; 24 25 checkPhase = '' 26 pytest 27 ''; 28 29 meta = with stdenv.lib; { 30 homepage = https://github.com/RKrahl/pytest-dependency; 31 description = "Manage dependencies of tests"; 32 license = licenses.asl20; 33 maintainers = [ maintainers.marsam ]; 34 }; 35}