summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-repeat/default.nix
blob: 358b651733aee055b5cbc4505eb2fc4d23a9984d (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
{
  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 = [ ];
  };
}