2020-11-12 09:05:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
2020-11-12 09:05:59 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pexpect
|
|
|
|
, pytestcov
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-timeout";
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-12 09:05:59 +00:00
|
|
|
sha256 = "0xnsigs0kmpq1za0d4i522sp3f71x5bgpdh3ski0rs74yqy13cr0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
propagatedBuildInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook pexpect pytestcov ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_suppresses_timeout_when_pdb_is_entered"
|
|
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"-ra"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "py.test plugin to abort hanging tests";
|
2020-11-12 09:05:59 +00:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-timeout/";
|
|
|
|
changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ makefu costrouc ];
|
|
|
|
};
|
|
|
|
}
|