Merge pull request #219538 from fabaff/eradicate-bump

python310Packages.eradicate: 2.1.0 -> 2.2.0
This commit is contained in:
Fabian Affolter
2023-03-08 08:00:59 +01:00
committed by GitHub
@@ -1,19 +1,41 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "eradicate";
version = "2.1.0";
version = "2.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-qsc4SrJbG/IcTAEt6bS/g5iUWhTJjJEVRbLqUKtVgBQ=";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "wemake-services";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-pVjvzW3UVeLMLLYcU0SIE19GEHFmouoA/JKSweTZSGo=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"eradicate"
];
pytestFlagsArray = [
"test_eradicate.py"
];
meta = with lib; {
description = "eradicate removes commented-out code from Python files.";
description = "Library to remove commented-out code from Python files";
homepage = "https://github.com/myint/eradicate";
license = [ licenses.mit ];
maintainers = [ maintainers.mmlb ];
changelog = "https://github.com/wemake-services/eradicate/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ mmlb ];
};
}