1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "eradicate"; 11 version = "3.0.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "wemake-services"; 18 repo = "eradicate"; 19 tag = version; 20 hash = "sha256-V3g9qYM/TiOz83IMoUwu0CvFWBxB5Yk3Dy3G/Dz3vYw="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "eradicate" ]; 26 27 enabledTestPaths = [ "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/${src.tag}"; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ mmlb ]; 36 }; 37}