2017-12-05 12:31:43 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-08-08 19:23:27 +00:00
|
|
|
, fetchpatch
|
2017-12-05 12:31:43 +00:00
|
|
|
, lib
|
|
|
|
, pexpect
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-timeout";
|
2018-11-18 15:48:10 +00:00
|
|
|
version = "1.3.3";
|
2017-12-05 12:31:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-18 15:48:10 +00:00
|
|
|
sha256 = "1cczcjhw4xx5sjkhxlhc5c1bkr7x6fcyx12wrnvwfckshdvblc2a";
|
2017-12-05 12:31:43 +00:00
|
|
|
};
|
2018-08-08 19:23:27 +00:00
|
|
|
|
2019-02-14 12:42:56 +00:00
|
|
|
patches = fetchpatch {
|
|
|
|
url = https://bitbucket.org/pytest-dev/pytest-timeout/commits/36998c891573d8ec1db1acd4f9438cb3cf2aee2e/raw;
|
|
|
|
sha256 = "05zc2w7mjgv8rm8i1cbxp7k09vlscmay5iy78jlzgjqkrx3wkf46";
|
|
|
|
};
|
|
|
|
|
2017-12-05 12:31:43 +00:00
|
|
|
checkInputs = [ pytest pexpect ];
|
2020-02-21 11:53:08 +00:00
|
|
|
checkPhase = ''
|
|
|
|
# test_suppresses_timeout_when_pdb_is_entered fails under heavy load
|
|
|
|
pytest -ra -k 'not test_suppresses_timeout_when_pdb_is_entered'
|
|
|
|
'';
|
2017-12-05 12:31:43 +00:00
|
|
|
|
|
|
|
meta = with lib;{
|
|
|
|
description = "py.test plugin to abort hanging tests";
|
2018-06-27 20:12:57 +00:00
|
|
|
homepage = https://bitbucket.org/pytest-dev/pytest-timeout/;
|
2017-12-05 12:31:43 +00:00
|
|
|
license = licenses.mit;
|
2018-08-08 19:23:27 +00:00
|
|
|
maintainers = with maintainers; [ makefu costrouc ];
|
2017-12-05 12:31:43 +00:00
|
|
|
};
|
|
|
|
}
|