1{
2 lib,
3 buildPythonPackage,
4 coverage,
5 fetchFromGitHub,
6 pytest,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-testmon";
13 version = "2.1.3";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "tarpas";
20 repo = "pytest-testmon";
21 tag = "v${version}";
22 hash = "sha256-LSp3GkvyZ8wX6qelGy4PdCliGIzXo2nJNrYqxdSo/wM=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 buildInputs = [ pytest ];
28
29 propagatedBuildInputs = [ coverage ];
30
31 # The project does not include tests since version 1.3.0
32 doCheck = false;
33
34 pythonImportsCheck = [ "testmon" ];
35
36 meta = with lib; {
37 description = "Pytest plug-in which automatically selects and re-executes only tests affected by recent changes";
38 homepage = "https://github.com/tarpas/pytest-testmon/";
39 changelog = "https://github.com/tarpas/pytest-testmon/releases/tag/v${version}";
40 license = licenses.mit;
41 maintainers = with maintainers; [ dmvianna ];
42 };
43}