python3Packages.pytest-timeout: 1.3.3 -> 1.4.2
* Update version * switch to pytestCheckHook * Update meta: hompage & changelog * explicit runtime dependency on pytest Based on work by @jpgu-epam in #97527.
This commit is contained in:
parent
c2694ef30d
commit
5f4c238ea5
@ -1,34 +1,36 @@
|
|||||||
{ buildPythonPackage
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, fetchpatch
|
|
||||||
, lib
|
|
||||||
, pexpect
|
|
||||||
, pytest
|
, pytest
|
||||||
|
, pytestCheckHook
|
||||||
|
, pexpect
|
||||||
|
, pytestcov
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-timeout";
|
pname = "pytest-timeout";
|
||||||
version = "1.3.3";
|
version = "1.4.2";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1cczcjhw4xx5sjkhxlhc5c1bkr7x6fcyx12wrnvwfckshdvblc2a";
|
sha256 = "0xnsigs0kmpq1za0d4i522sp3f71x5bgpdh3ski0rs74yqy13cr0";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = fetchpatch {
|
propagatedBuildInputs = [ pytest ];
|
||||||
url = "https://bitbucket.org/pytest-dev/pytest-timeout/commits/36998c891573d8ec1db1acd4f9438cb3cf2aee2e/raw";
|
|
||||||
sha256 = "05zc2w7mjgv8rm8i1cbxp7k09vlscmay5iy78jlzgjqkrx3wkf46";
|
|
||||||
};
|
|
||||||
|
|
||||||
checkInputs = [ pytest pexpect ];
|
checkInputs = [ pytestCheckHook pexpect pytestcov ];
|
||||||
checkPhase = ''
|
|
||||||
# test_suppresses_timeout_when_pdb_is_entered fails under heavy load
|
|
||||||
pytest -ra -k 'not test_suppresses_timeout_when_pdb_is_entered'
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib;{
|
disabledTests = [
|
||||||
|
"test_suppresses_timeout_when_pdb_is_entered"
|
||||||
|
];
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"-ra"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "py.test plugin to abort hanging tests";
|
description = "py.test plugin to abort hanging tests";
|
||||||
homepage = "https://bitbucket.org/pytest-dev/pytest-timeout/";
|
homepage = "https://github.com/pytest-dev/pytest-timeout/";
|
||||||
|
changelog = "https://github.com/pytest-dev/pytest-timeout/#changelog";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ makefu costrouc ];
|
maintainers = with maintainers; [ makefu costrouc ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user