mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 03:10:19 +00:00
python3Packages.covdefaults: init at 2.3.0 (#567494)
This commit is contained in:
@@ -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";
|
||||
|
||||
53
pkgs/development/python-modules/covdefaults/default.nix
Normal file
53
pkgs/development/python-modules/covdefaults/default.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user