about summary refs log tree commit diff
path: root/pkgs/development/python-modules/doit-py/default.nix
blob: ee10af6396e70c8bde345107d323ef892f7448f7 (plain) (blame)
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
{ 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 = pname;
    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 = with lib; {
    description = "doit tasks for python stuff";
    homepage = "http://pythonhosted.org/doit-py";
    license = licenses.mit;
    maintainers = with maintainers; [ onny ];
  };
}