38 lines
809 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2017-12-05 13:31:43 +01:00
, fetchPypi
, pytest
, pytestCheckHook
, pexpect
, pytestcov
2017-12-05 13:31:43 +01:00
}:
buildPythonPackage rec {
pname = "pytest-timeout";
version = "1.4.2";
2017-12-05 13:31:43 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "0xnsigs0kmpq1za0d4i522sp3f71x5bgpdh3ski0rs74yqy13cr0";
2017-12-05 13:31:43 +01:00
};
propagatedBuildInputs = [ pytest ];
checkInputs = [ pytestCheckHook pexpect pytestcov ];
2019-02-14 13:42:56 +01:00
disabledTests = [
"test_suppresses_timeout_when_pdb_is_entered"
];
pytestFlagsArray = [
"-ra"
];
2017-12-05 13:31:43 +01:00
meta = with lib; {
2017-12-05 13:31:43 +01:00
description = "py.test plugin to abort hanging tests";
homepage = "https://github.com/pytest-dev/pytest-timeout/";
changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog";
2017-12-05 13:31:43 +01:00
license = licenses.mit;
maintainers = with maintainers; [ makefu costrouc ];
2017-12-05 13:31:43 +01:00
};
}