depot/third_party/nixpkgs/pkgs/development/python-modules/docstr-coverage/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

40 lines
996 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, click
, pyyaml
, tqdm
, pytestCheckHook
, pytest-mock
}:
let
version = "2.3.1";
in
buildPythonPackage {
pname = "docstr-coverage";
inherit version;
src = fetchFromGitHub {
owner = "HunterMcGushion";
repo = "docstr_coverage";
rev = "refs/tags/v${version}";
hash = "sha256-QmQE6KZ2NdXKQun+uletxYPktWvfkrj6NPAVl/mmpAY=";
};
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 ];
};
}