python3Packages.covdefaults: init at 2.3.0 (#567494)

This commit is contained in:
Diogo Correia
2026-09-27 15:38:32 +00:00
committed by GitHub
3 changed files with 61 additions and 0 deletions

View File

@@ -12151,6 +12151,12 @@
githubId = 71074737;
name = "Simon Wick";
};
ilovelinux = {
email = "nix+nixpkgs@ilovelinux.dev";
github = "ilovelinux";
githubId = 9268789;
name = "Antonio Spadaro";
};
ilya-epifanov = {
email = "mail@ilya.network";
github = "ilya-epifanov";

View File

@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# build-system
setuptools,
# dependencies
coverage,
# tests
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "covdefaults";
version = "2.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "asottile";
repo = "covdefaults";
tag = "v${finalAttrs.version}";
hash = "sha256-/RqqvGL2a6sCNe5HrJ9Ty5SlingQ+dblVtGYd+z8ZKw=";
};
build-system = [ setuptools ];
dependencies = [ coverage ];
nativeCheckInputs = [ pytestCheckHook ];
patches = [
# Add support for coverage>=7.7.0. The patch is already in `main`
# but not included in tag v2.3.0
(fetchpatch2 {
url = "https://github.com/asottile/covdefaults/commit/18fbb656ef7e90ccd2af5dbef6f100054d96c866.patch";
hash = "sha256-/MEZEztJUKuEmFmIKTrEiZYmJ4pOFLphDDl1Q+c5TN0=";
})
];
pythonImportsCheck = [ "covdefaults" ];
meta = {
description = "A coverage plugin to provide sensible default settings";
homepage = "https://github.com/asottile/covdefaults";
changelog = "https://github.com/asottile/covdefaults/commits/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ilovelinux ];
};
})

View File

@@ -3729,6 +3729,8 @@ self: super: with self; {
courlan = callPackage ../development/python-modules/courlan { };
covdefaults = callPackage ../development/python-modules/covdefaults { };
coverage = callPackage ../development/python-modules/coverage { };
coveralls = callPackage ../development/python-modules/coveralls { };