mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
Merge pull request #269819 from fabaff/vulture-bump
python311Packages.vulture: 2.9.1 -> 2.10
This commit is contained in:
commit
95a80c9d0c
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user