1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 click,
6 pyyaml,
7 tqdm,
8 pytestCheckHook,
9 pytest-mock,
10}:
11let
12 version = "2.3.2";
13in
14buildPythonPackage {
15 pname = "docstr-coverage";
16 inherit version;
17
18 src = fetchFromGitHub {
19 owner = "HunterMcGushion";
20 repo = "docstr_coverage";
21 tag = "v${version}";
22 hash = "sha256-k1ny4fWS+CmgLNWPlYPsscjei2UZ6h8QJrZSay5abck=";
23 };
24
25 propagatedBuildInputs = [
26 click
27 pyyaml
28 tqdm
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 pytest-mock
34 ];
35
36 disabledTests = [
37 # AssertionError: assert 'docstr_coverage' in '/build/source/tests'
38 "test_set_config_defaults_with_ignore_patterns"
39 ];
40
41 meta = with lib; {
42 description = "Docstring coverage analysis and rating for Python";
43 mainProgram = "docstr-coverage";
44 homepage = "https://github.com/HunterMcGushion/docstr_coverage";
45 changelog = "https://github.com/HunterMcGushion/docstr_coverage/blob/master/CHANGELOG.md";
46 license = licenses.mit;
47 maintainers = with maintainers; [ augustebaum ];
48 };
49}