about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytest-shutil/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pytest-shutil/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pytest-shutil/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pytest-shutil/default.nix b/nixpkgs/pkgs/development/python-modules/pytest-shutil/default.nix
new file mode 100644
index 000000000000..e3b2277fa99b
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/pytest-shutil/default.nix
@@ -0,0 +1,33 @@
+{ lib, isPyPy, buildPythonPackage, fetchPypi
+, pytest, cmdline, pytest-cov, coverage, setuptools-git, mock, path, execnet
+, contextlib2, termcolor, six }:
+
+buildPythonPackage rec {
+  pname = "pytest-shutil";
+  version = "1.7.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq";
+  };
+
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace "path.py" "path"
+  '';
+
+  buildInputs = [ pytest ];
+  checkInputs = [ cmdline pytest ];
+  propagatedBuildInputs = [ pytest-cov coverage setuptools-git mock path execnet contextlib2 termcolor six ];
+
+  checkPhase = ''
+    py.test ${lib.optionalString isPyPy "-k'not (test_run or test_run_integration)'"}
+  '';
+
+  meta = with lib; {
+    description = "A goodie-bag of unix shell and environment tools for py.test";
+    homepage = "https://github.com/manahl/pytest-plugins";
+    maintainers = with maintainers; [ ryansydnor ];
+    license = licenses.mit;
+  };
+}