nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 packaging,
7 pytest,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-rerunfailures";
13 version = "16.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "pytest-dev";
18 repo = "pytest-rerunfailures";
19 tag = version;
20 hash = "sha256-EvjgqJQb4Nw7rn/wVLfHoq9iUnJ4vQ1kwSL5fetHv6M=";
21 };
22
23 build-system = [ setuptools ];
24
25 buildInputs = [ pytest ];
26
27 dependencies = [ packaging ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 meta = {
32 description = "Pytest plugin to re-run tests to eliminate flaky failures";
33 homepage = "https://github.com/pytest-dev/pytest-rerunfailures";
34 changelog = "https://github.com/pytest-dev/pytest-rerunfailures/blob/${src.tag}/CHANGES.rst";
35 license = lib.licenses.mpl20;
36 maintainers = with lib.maintainers; [ das-g ];
37 };
38}