summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-testmon/default.nix
blob: 3cd1ada86ad32fc1ebd6176f5567ce01c5a998e5 (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,
  coverage,
  fetchFromGitHub,
  pytest,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pytest-testmon";
  version = "2.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tarpas";
    repo = "pytest-testmon";
    tag = "v${version}";
    hash = "sha256-BVQ7rEusbW0G1C6cUeHH7fZWndSErcBQfGNdw0/4eTg=";
  };

  build-system = [ setuptools ];

  buildInputs = [ pytest ];

  dependencies = [ coverage ];

  # The project does not include tests since version 1.3.0
  doCheck = false;

  pythonImportsCheck = [ "testmon" ];

  meta = {
    description = "Pytest plug-in which automatically selects and re-executes only tests affected by recent changes";
    homepage = "https://github.com/tarpas/pytest-testmon/";
    changelog = "https://github.com/tarpas/pytest-testmon/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dmvianna ];
  };
}