summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-runner/2.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pytest-runner/2.nix')
-rw-r--r--pkgs/development/python-modules/pytest-runner/2.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-runner/2.nix b/pkgs/development/python-modules/pytest-runner/2.nix
new file mode 100644
index 00000000000..bea83146c37
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-runner/2.nix
@@ -0,0 +1,30 @@
+{ lib, buildPythonPackage, fetchPypi, setuptools-scm, pytest }:
+
+buildPythonPackage rec {
+  pname = "pytest-runner";
+  version = "5.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "96c7e73ead7b93e388c5d614770d2bae6526efd997757d3543fe17b557a0942b";
+  };
+
+  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;
+  };
+}