nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix
Drew Risinger 5f4c238ea5 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.
2020-10-29 12:39:11 -07:00

38 lines
809 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, pytestCheckHook
, pexpect
, pytestcov
}:
buildPythonPackage rec {
pname = "pytest-timeout";
version = "1.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "0xnsigs0kmpq1za0d4i522sp3f71x5bgpdh3ski0rs74yqy13cr0";
};
propagatedBuildInputs = [ pytest ];
checkInputs = [ pytestCheckHook pexpect pytestcov ];
disabledTests = [
"test_suppresses_timeout_when_pdb_is_entered"
];
pytestFlagsArray = [
"-ra"
];
meta = with lib; {
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";
license = licenses.mit;
maintainers = with maintainers; [ makefu costrouc ];
};
}