about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytestrunner/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pytestrunner/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pytestrunner/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pytestrunner/default.nix b/nixpkgs/pkgs/development/python-modules/pytestrunner/default.nix
new file mode 100644
index 000000000000..78ad4d2abc8c
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/pytestrunner/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, pytest }:
+
+buildPythonPackage rec {
+  pname = "pytest-runner";
+  version = "4.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "d23f117be39919f00dd91bffeb4f15e031ec797501b717a245e377aee0f577be";
+  };
+
+  nativeBuildInputs = [ setuptools_scm pytest ];
+
+  postPatch = ''
+    rm pytest.ini
+  '';
+
+  checkPhase = ''
+    py.test tests
+  '';
+
+  # Fixture not found
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    description = "Invoke py.test as distutils command with dependency resolution";
+    homepage = https://github.com/pytest-dev/pytest-runner;
+    license = licenses.mit;
+  };
+}