diff options
Diffstat (limited to 'pkgs/development/python-modules/pytest-runner/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pytest-runner/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-runner/default.nix b/pkgs/development/python-modules/pytest-runner/default.nix new file mode 100644 index 000000000000..d99f72299dd7 --- /dev/null +++ b/pkgs/development/python-modules/pytest-runner/default.nix @@ -0,0 +1,30 @@ +{ lib, buildPythonPackage, fetchPypi, setuptools-scm, pytest }: + +buildPythonPackage rec { + pname = "pytest-runner"; + version = "5.3.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "0fce5b8dc68760f353979d99fdd6b3ad46330b6b1837e2077a89ebcf204aac91"; + }; + + nativeBuildInputs = [ setuptools-scm pytest ]; + + postPatch = '' + rm pytest.ini + ''; + + checkPhase = '' + py.test tests + ''; + + # Fixture not found + doCheck = false; + + meta = with lib; { + description = "Invoke py.test as distutils command with dependency resolution"; + homepage = "https://github.com/pytest-dev/pytest-runner"; + license = licenses.mit; + }; +} |