summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-watch/default.nix
blob: f8bf50c9fd4eb05d3972d6cb630fd03d45ef87b9 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  docopt,
  colorama,
  pytest,
  watchdog,
}:

buildPythonPackage rec {
  pname = "pytest-watch";
  version = "4.2.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "06136f03d5b361718b8d0d234042f7b2f203910d8568f63df2f866b547b3d4b9";
  };

  buildInputs = [ pytest ];

  propagatedBuildInputs = [
    colorama
    docopt
    watchdog
  ];

  # No Tests
  doCheck = false;
  pythonImportsCheck = [ "pytest_watch" ];

  meta = {
    homepage = "https://github.com/joeyespo/pytest-watch";
    description = "Local continuous test runner with pytest and watchdog";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dmvianna ];
  };
}