blob: faa7ccad860aefcbbf9abe7c4277f409ca5e99ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytest,
pytestCheckHook,
pexpect,
}:
buildPythonPackage rec {
pname = "pytest-timeout";
version = "2.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pytest-dev";
repo = "pytest-timeout";
tag = version;
hash = "sha256-NGTy3Hua6yEMWXQDJQO2Z5DD3clXTZXEH6DNQBMSGtQ=";
};
build-system = [ setuptools ];
buildInputs = [ pytest ];
nativeCheckInputs = [
pytestCheckHook
pexpect
];
pythonImportsCheck = [ "pytest_timeout" ];
meta = {
description = "Pytest plugin to abort hanging tests";
homepage = "https://github.com/pytest-dev/pytest-timeout/";
changelog = "https://github.com/pytest-dev/pytest-timeout/tree/${src.tag}#changelog";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ makefu ];
};
}
|