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