1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "eradicate";
11 version = "2.3.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "wemake-services";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-ikiqNe1a+OeRraNBbtAx6v3LsTajWlgxm4wR2Tcbmjk=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "eradicate" ];
26
27 pytestFlagsArray = [ "test_eradicate.py" ];
28
29 meta = with lib; {
30 description = "Library to remove commented-out code from Python files";
31 mainProgram = "eradicate";
32 homepage = "https://github.com/myint/eradicate";
33 changelog = "https://github.com/wemake-services/eradicate/releases/tag/${version}";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ mmlb ];
36 };
37}