1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-api-core,
6 google-cloud-testutils,
7 grpcio,
8 grpcio-status,
9 mock,
10 proto-plus,
11 protobuf,
12 pytest-asyncio,
13 pytestCheckHook,
14 pythonOlder,
15 setuptools,
16}:
17
18buildPythonPackage rec {
19 pname = "google-ai-generativelanguage";
20 version = "0.6.4";
21 pyproject = true;
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchPypi {
26 inherit pname version;
27 hash = "sha256-F1CEjBKvlsskrhw90F5L/iSGfcRXcAntA+EELYQh6HQ=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 google-api-core
34 grpcio
35 grpcio-status
36 proto-plus
37 protobuf
38 ];
39
40 nativeCheckInputs = [
41 google-cloud-testutils
42 mock
43 pytest-asyncio
44 pytestCheckHook
45 ];
46
47 pythonImportsCheck = [
48 "google.ai.generativelanguage"
49 "google.ai.generativelanguage_v1beta2"
50 ];
51
52 meta = with lib; {
53 description = "Google Ai Generativelanguage API client library";
54 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-ai-generativelanguage";
55 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-ai-generativelanguage-v${version}/packages/google-ai-generativelanguage/CHANGELOG.md";
56 license = licenses.asl20;
57 maintainers = with maintainers; [ fab ];
58 };
59}