summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/doit-py/default.nix
blob: 371a4ff2d47bd4620cd3c35c4f7a2732065a5e22 (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
41
42
43
44
45
46
47
48
49
50
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  doit,
  configclass,
  mergedict,
  pytestCheckHook,
  hunspell,
  hunspellDicts,
}:

buildPythonPackage rec {
  pname = "doit-py";
  version = "0.5.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "pydoit";
    repo = "doit-py";
    rev = version;
    hash = "sha256-DBl6/no04ZGRHHmN9gkEtBmAMgmyZWcfPCcFz0uxAv4=";
  };

  propagatedBuildInputs = [
    configclass
    doit
    mergedict
  ];

  nativeCheckInputs = [
    hunspell
    hunspellDicts.en_US
    pytestCheckHook
  ];

  disabledTestPaths = [
    # Disable linting checks
    "tests/test_pyflakes.py"
  ];

  pythonImportsCheck = [ "doitpy" ];

  meta = {
    description = "doit tasks for python stuff";
    homepage = "http://pythonhosted.org/doit-py";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ onny ];
  };
}