1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, clarifai-grpc 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "clarifai"; 11 version = "9.7.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "Clarifai"; 18 repo = "clarifai-python-utils"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-/zgHgD2kf3ZG7Mu9AEBfOwqpcD0Ye0LVrFxLeuGurCM="; 21 }; 22 23 propagatedBuildInputs = [ 24 clarifai-grpc 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "clarifai" ]; 32 33 meta = with lib; { 34 description = "Clarifai Python Utilities"; 35 homepage = "https://github.com/Clarifai/clarifai-python-utils"; 36 changelog = "https://github.com/Clarifai/clarifai-python-utils/releases/tag/${src.rev}"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ natsukium ]; 39 }; 40}