Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "pre-commit"; 21 repo = "identify"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-ZusDe675QdQyiiGSdmWT+l1jGEGXEY+Dobm4y20WWX8="; 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}