about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-timeout/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pytest-timeout/default.nix')
-rw-r--r--pkgs/development/python-modules/pytest-timeout/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-timeout/default.nix b/pkgs/development/python-modules/pytest-timeout/default.nix
new file mode 100644
index 000000000000..d3a4e375ec3a
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-timeout/default.nix
@@ -0,0 +1,27 @@
+{ buildPythonPackage
+, fetchPypi
+, lib
+, pexpect
+, pytest
+}:
+
+buildPythonPackage rec {
+  pname = "pytest-timeout";
+  version = "1.2.1";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1kdp6qbh5v1168l99rba5yfzvy05gmzkmkhldgp36p9xcdjd5dv8";
+  };
+  buildInputs = [ pytest ];
+  checkInputs = [ pytest pexpect ];
+  checkPhase = ''pytest -ra'';
+
+  meta = with lib;{
+    description = "py.test plugin to abort hanging tests";
+    homepage = http://bitbucket.org/pytest-dev/pytest-timeout/;
+    license = licenses.mit;
+    maintainers = with maintainers; [ makefu ];
+  };
+}