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