mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 13:06:32 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
860 B
Nix
41 lines
860 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|