1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "classify-imports"; 11 version = "4.2.0"; 12 format = "setuptools"; 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "asottile"; 17 repo = "classify-imports"; 18 rev = "v${version}"; 19 hash = "sha256-f5wZfisKz9WGdq6u0rd/zg2CfMwWvQeR8xZQNbD7KfU="; 20 }; 21 22 pythonImportsCheck = [ "classify_imports" ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 meta = with lib; { 27 description = "Utilities for refactoring imports in python-like syntax"; 28 homepage = "https://github.com/asottile/classify-imports"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ gador ]; 31 }; 32}