nixpkgs/pkgs/development/python-modules/pytest-repeat/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

40 lines
794 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
hatch-vcs,
pytest,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytest-repeat";
version = "0.9.4";
pyproject = true;
src = fetchPypi {
pname = "pytest_repeat";
inherit version;
hash = "sha256-2SrBTfqm/8/mkX5dFvDJvII4DBNbA8Kl9BLSY38iRIU=";
};
build-system = [
hatchling
hatch-vcs
];
buildInputs = [ pytest ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pytest_repeat" ];
meta = {
description = "Pytest plugin for repeating tests";
homepage = "https://github.com/pytest-dev/pytest-repeat";
changelog = "https://github.com/pytest-dev/pytest-repeat/blob/v${version}/CHANGES.rst";
license = lib.licenses.mpl20;
maintainers = [ ];
};
}