From ce8e4bca5641eb86d7d2f94f17e17f2fcd71754c Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Wed, 25 Dec 2024 20:51:50 +0800 Subject: [PATCH] python312Packages.pinecone-plugin: 4.1.2 -> 5.4.2 --- .../pinecone-client/default.nix | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/pinecone-client/default.nix b/pkgs/development/python-modules/pinecone-client/default.nix index 9ade9dc4d2ce..c3a77eae2bf3 100644 --- a/pkgs/development/python-modules/pinecone-client/default.nix +++ b/pkgs/development/python-modules/pinecone-client/default.nix @@ -2,7 +2,7 @@ lib, buildPythonPackage, dnspython, - fetchPypi, + fetchFromGitHub, loguru, numpy, poetry-core, @@ -10,27 +10,33 @@ pythonOlder, pyyaml, requests, + pandas, setuptools, tqdm, typing-extensions, + pinecone-plugin-interface, + pinecone-plugin-inference, urllib3, + googleapis-common-protos, + lz4, + protobuf, + grpcio, }: buildPythonPackage rec { pname = "pinecone-client"; - version = "4.1.2"; + version = "5.4.2"; pyproject = true; disabled = pythonOlder "3.8"; - src = fetchPypi { - pname = "pinecone_client"; - inherit version; - hash = "sha256-+onGBXkuyU3jbUyVhSULR7C2Q0B0VwU+yokAhCS+YoE="; + src = fetchFromGitHub { + owner = "pinecone-io"; + repo = "pinecone-python-client"; + tag = "v${version}"; + hash = "sha256-5BCjqcJ+xCTTF/Q+PrgNV4Y/GcT2cfNqvY1ydUL6EZ8="; }; - pythonRelaxDeps = [ "urllib3" ]; - build-system = [ setuptools poetry-core @@ -41,6 +47,8 @@ buildPythonPackage rec { loguru numpy python-dateutil + pinecone-plugin-interface + pinecone-plugin-inference pyyaml requests tqdm @@ -48,16 +56,13 @@ buildPythonPackage rec { urllib3 ]; - # Tests require network access - doCheck = false; - pythonImportsCheck = [ "pinecone" ]; - meta = with lib; { + meta = { description = "Pinecone python client"; homepage = "https://www.pinecone.io/"; changelog = "https://github.com/pinecone-io/pinecone-python-client/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ happysalada ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ happysalada ]; }; }