Merge pull request #276350 from augustebaum/init-docstr-coverage
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, click
|
||||
, pyyaml
|
||||
, tqdm
|
||||
, pytestCheckHook
|
||||
, pytest-mock
|
||||
}:
|
||||
let
|
||||
version = "2.3.0";
|
||||
in
|
||||
buildPythonPackage {
|
||||
pname = "docstr-coverage";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "HunterMcGushion";
|
||||
repo = "docstr_coverage";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-eYHhE5zs3hYzK3aAimF0Gx/Kyk1Ot1F/lKf1poR2er0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ click pyyaml tqdm ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook pytest-mock ];
|
||||
|
||||
disabledTests = [
|
||||
# AssertionError: assert 'docstr_coverage' in '/build/source/tests'
|
||||
"test_set_config_defaults_with_ignore_patterns"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Docstring coverage analysis and rating for Python";
|
||||
homepage = "https://github.com/HunterMcGushion/docstr_coverage";
|
||||
changelog = "https://github.com/HunterMcGushion/docstr_coverage/blob/master/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ augustebaum ];
|
||||
};
|
||||
}
|
||||
@@ -3354,6 +3354,8 @@ self: super: with self; {
|
||||
|
||||
docloud = callPackage ../development/python-modules/docloud { };
|
||||
|
||||
docstr-coverage = callPackage ../development/python-modules/docstr-coverage { };
|
||||
|
||||
docstring-to-markdown = callPackage ../development/python-modules/docstring-to-markdown { };
|
||||
|
||||
docstring-parser = callPackage ../development/python-modules/docstring-parser { };
|
||||
|
||||
Reference in New Issue
Block a user