nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix

27 lines
593 B
Nix
Raw Normal View History

2017-12-05 12:31:43 +00:00
{ buildPythonPackage
, fetchPypi
, lib
, pexpect
, pytest
}:
buildPythonPackage rec {
pname = "pytest-timeout";
2018-07-26 12:09:42 +01:00
version = "1.3.1";
2017-12-05 12:31:43 +00:00
src = fetchPypi {
inherit pname version;
2018-07-26 12:09:42 +01:00
sha256 = "4b261bec5782b603c98b4bb803484bc96bf1cdcb5480dae0999d21c7e0423a23";
2017-12-05 12:31:43 +00:00
};
buildInputs = [ pytest ];
checkInputs = [ pytest pexpect ];
checkPhase = ''pytest -ra'';
meta = with lib;{
description = "py.test plugin to abort hanging tests";
2018-06-27 21:12:57 +01:00
homepage = https://bitbucket.org/pytest-dev/pytest-timeout/;
2017-12-05 12:31:43 +00:00
license = licenses.mit;
maintainers = with maintainers; [ makefu ];
};
}