Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 33 lines 641 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, editdistance 6}: 7 8buildPythonPackage rec { 9 pname = "identify"; 10 version = "1.6.1"; 11 12 13 src = fetchFromGitHub { 14 owner = "pre-commit"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "1sqhqqjp53dwm8yq4nrgggxbvzs3szbg49z5sj2ss9xzlgmimclm"; 18 }; 19 20 checkInputs = [ 21 editdistance 22 pytestCheckHook 23 ]; 24 25 pythonImportsCheck = [ "identify" ]; 26 27 meta = with lib; { 28 description = "File identification library for Python"; 29 homepage = "https://github.com/chriskuehl/identify"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ fab ]; 32 }; 33}