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

28 lines
624 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-06-21 06:37:18 +01:00
version = "1.3.0";
2017-12-05 12:31:43 +00:00
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
2018-06-21 06:37:18 +01:00
sha256 = "08b550b498b9251901a3747f02aa2624ed53a9c8285ca482551346c85b47d641";
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";
homepage = http://bitbucket.org/pytest-dev/pytest-timeout/;
license = licenses.mit;
maintainers = with maintainers; [ makefu ];
};
}