1{
2 lib,
3 buildPythonPackage,
4 dnspython,
5 fetchPypi,
6 loguru,
7 numpy,
8 poetry-core,
9 python-dateutil,
10 pythonOlder,
11 pythonRelaxDepsHook,
12 pyyaml,
13 requests,
14 setuptools,
15 tqdm,
16 typing-extensions,
17 urllib3,
18}:
19
20buildPythonPackage rec {
21 pname = "pinecone-client";
22 version = "4.1.0";
23 pyproject = true;
24
25 disabled = pythonOlder "3.8";
26
27 src = fetchPypi {
28 pname = "pinecone_client";
29 inherit version;
30 hash = "sha256-QgYqYo56lB0Lwku4r7Am861NJkzwbWpiej3lgyFK494=";
31 };
32
33 pythonRelaxDeps = [ "urllib3" ];
34
35 nativeBuildInputs = [ pythonRelaxDepsHook ];
36
37 build-system = [
38 setuptools
39 poetry-core
40 ];
41
42 dependencies = [
43 dnspython
44 loguru
45 numpy
46 python-dateutil
47 pyyaml
48 requests
49 tqdm
50 typing-extensions
51 urllib3
52 ];
53
54 # Tests require network access
55 doCheck = false;
56
57 pythonImportsCheck = [ "pinecone" ];
58
59 meta = with lib; {
60 description = "The Pinecone python client";
61 homepage = "https://www.pinecone.io/";
62 changelog = "https://github.com/pinecone-io/pinecone-python-client/releases/tag/v${version}";
63 license = licenses.mit;
64 maintainers = with maintainers; [ happysalada ];
65 };
66}