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