Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pytest-testmon / default.nix
blob7d2e07db01fc42e858d88d09a69c14d83c72730b
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , coverage
6 , pytest
7 }:
9 buildPythonPackage rec {
10   pname = "pytest-testmon";
11   version = "1.1.0";
12   disabled = pythonOlder "3.6";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "sha256-+IpT0o+Jg2UJcy6d7mEdZsYfW4IXIBu4IqBFbywyPRk=";
17   };
19   propagatedBuildInputs = [ coverage ];
21   checkInputs = [ pytest ];
23   # avoid tests which try to import unittest_mixins
24   # unittest_mixins doesn't seem to be very active
25   checkPhase = ''
26     cd test
27     pytest test_{core,process_code,pytest_assumptions}.py
28   '';
30   meta = with lib; {
31     homepage = "https://github.com/tarpas/pytest-testmon/";
32     description = "This is a py.test plug-in which automatically selects and re-executes only tests affected by recent changes";
33     license = licenses.mit;
34     maintainers = [ maintainers.dmvianna ];
35   };