1{ 2 lib, 3 buildPythonPackage, 4 editdistance-s, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9 ukkonen, 10}: 11 12buildPythonPackage rec { 13 pname = "identify"; 14 version = "2.6.10"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "pre-commit"; 21 repo = "identify"; 22 tag = "v${version}"; 23 hash = "sha256-PI7EDA6CZs6nGcggCt008LaQtJLlkAHj0Pnx44plggY="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 editdistance-s 30 pytestCheckHook 31 ukkonen 32 ]; 33 34 pythonImportsCheck = [ "identify" ]; 35 36 meta = with lib; { 37 description = "File identification library for Python"; 38 homepage = "https://github.com/chriskuehl/identify"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ fab ]; 41 mainProgram = "identify-cli"; 42 }; 43}