diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-02-20 12:16:56 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-02-20 12:16:56 +0100 |
commit | b24d64b3b1ef897f07cd072a88a9881cb330aa7f (patch) | |
tree | a87bb2eed9af3ef1efd51dd65221d91f0c949041 /nixpkgs/pkgs/development/python-modules/docstr-coverage | |
parent | 73338df7473bb3810e70a16b8b0cba4f0f606f2b (diff) | |
parent | fa15b53dbea5028db38d6e09b4cef6eba42aeebb (diff) | |
download | nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.gz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.bz2 nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.lz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.xz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.zst nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/docstr-coverage')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/docstr-coverage/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/docstr-coverage/default.nix b/nixpkgs/pkgs/development/python-modules/docstr-coverage/default.nix new file mode 100644 index 000000000000..2c3289c0f393 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/docstr-coverage/default.nix @@ -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 ]; + }; +} |