2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2023-03-08 16:32:21 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "eradicate";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.3.0";
|
2023-03-08 16:32:21 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wemake-services";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-ikiqNe1a+OeRraNBbtAx6v3LsTajWlgxm4wR2Tcbmjk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-03-08 16:32:21 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "eradicate" ];
|
2023-03-08 16:32:21 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "test_eradicate.py" ];
|
2023-03-08 16:32:21 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2023-03-08 16:32:21 +00:00
|
|
|
description = "Library to remove commented-out code from Python files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "eradicate";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/myint/eradicate";
|
2023-03-08 16:32:21 +00:00
|
|
|
changelog = "https://github.com/wemake-services/eradicate/releases/tag/${version}";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ mmlb ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|