nixpkgs/pkgs/development/python-modules/pytest-timeout/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 ];
};
}