python312Packages.vulture: 2.12 -> 2.13
Changelog: https://github.com/jendrikseipp/vulture/releases/tag/v2.13
This commit is contained in:
committed by
Martin Weinelt
parent
ac4087fae7
commit
c49a79c8bf
@@ -3,6 +3,7 @@
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pint,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
@@ -12,27 +13,23 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vulture";
|
||||
version = "2.12";
|
||||
version = "2.13";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-w16Y6ZLrhLAc2tv+sKyi1ENj59/mwZQW9lABrmk2DMw=";
|
||||
hash = "sha256-eCSL9Y9er/zCreMGFB6tc/Q3M5lQ+ABF3Of4sHjloao=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace " --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append" ""
|
||||
'';
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ tomli ];
|
||||
dependencies = lib.optionals (pythonOlder "3.11") [ tomli ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pint
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
toml
|
||||
];
|
||||
@@ -41,10 +38,10 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Finds unused code in Python programs";
|
||||
mainProgram = "vulture";
|
||||
homepage = "https://github.com/jendrikseipp/vulture";
|
||||
changelog = "https://github.com/jendrikseipp/vulture/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mcwitt ];
|
||||
mainProgram = "vulture";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user