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