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 format = "setuptools";
18
19 src = fetchFromGitHub {
20 owner = "HunterMcGushion";
21 repo = "docstr_coverage";
22 tag = "v${version}";
23 hash = "sha256-k1ny4fWS+CmgLNWPlYPsscjei2UZ6h8QJrZSay5abck=";
24 };
25
26 propagatedBuildInputs = [
27 click
28 pyyaml
29 tqdm
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 pytest-mock
35 ];
36
37 disabledTests = [
38 # AssertionError: assert 'docstr_coverage' in '/build/source/tests'
39 "test_set_config_defaults_with_ignore_patterns"
40 ];
41
42 meta = with lib; {
43 description = "Docstring coverage analysis and rating for Python";
44 mainProgram = "docstr-coverage";
45 homepage = "https://github.com/HunterMcGushion/docstr_coverage";
46 changelog = "https://github.com/HunterMcGushion/docstr_coverage/blob/master/CHANGELOG.md";
47 license = licenses.mit;
48 maintainers = with maintainers; [ augustebaum ];
49 };
50}