Merge pull request #269819 from fabaff/vulture-bump

python311Packages.vulture: 2.9.1 -> 2.10
This commit is contained in:
Fabian Affolter 2023-11-25 17:53:52 +01:00 committed by GitHub
commit 95a80c9d0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,21 +2,23 @@
, buildPythonPackage
, fetchPypi
, pint
, pythonOlder
, pytestCheckHook
, pythonOlder
, setuptools
, toml
, tomli
}:
buildPythonPackage rec {
pname = "vulture";
version = "2.9.1";
format = "setuptools";
version = "2.10";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-tqKqYytv1RSIqO6sZQq0pQm7GgMugZQ4F6ii5qY6MLM=";
hash = "sha256-KlwxYL/7p3WVtubfzEEgFr0qCc1LZs33+7qRNoSJn28=";
};
postPatch = ''
@ -24,13 +26,18 @@ buildPythonPackage rec {
--replace " --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append" ""
'';
propagatedBuildInputs = [
toml
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [
tomli
];
nativeCheckInputs = [
pint
pytestCheckHook
toml
];
pythonImportsCheck = [
@ -40,6 +47,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Finds unused code in Python programs";
homepage = "https://github.com/jendrikseipp/vulture";
changelog = "https://github.com/jendrikseipp/vulture/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ mcwitt ];
};