nixpkgs/pkgs/development/python-modules/docstr-coverage/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

50 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
click,
pyyaml,
tqdm,
pytestCheckHook,
pytest-mock,
}:
let
version = "2.3.2";
in
buildPythonPackage {
pname = "docstr-coverage";
inherit version;
format = "setuptools";
src = fetchFromGitHub {
owner = "HunterMcGushion";
repo = "docstr_coverage";
tag = "v${version}";
hash = "sha256-k1ny4fWS+CmgLNWPlYPsscjei2UZ6h8QJrZSay5abck=";
};
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 = {
description = "Docstring coverage analysis and rating for Python";
mainProgram = "docstr-coverage";
homepage = "https://github.com/HunterMcGushion/docstr_coverage";
changelog = "https://github.com/HunterMcGushion/docstr_coverage/blob/master/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ augustebaum ];
};
}