From b45173c6ada51960cd81ab077c46de667d593c6c Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 22 Jan 2024 01:49:52 +0100 Subject: [PATCH] python311Packages.pinecone-client: fix build --- .../python-modules/pinecone-client/default.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pinecone-client/default.nix b/pkgs/development/python-modules/pinecone-client/default.nix index 2b7597499632..625779d17fe1 100644 --- a/pkgs/development/python-modules/pinecone-client/default.nix +++ b/pkgs/development/python-modules/pinecone-client/default.nix @@ -2,6 +2,8 @@ , buildPythonPackage , fetchPypi , setuptools +, poetry-core +, pythonRelaxDepsHook , numpy , pyyaml , python-dateutil @@ -18,12 +20,15 @@ buildPythonPackage rec { pyproject = true; src = fetchPypi { - inherit pname version; + pname = "pinecone_client"; + inherit version; hash = "sha256-F2mWUpFMn2ipopa3UjvzrmNZsHtdRrUwfkuHbDYBElo="; }; nativeBuildInputs = [ setuptools + poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ @@ -38,12 +43,20 @@ buildPythonPackage rec { loguru ]; + pythonRelaxDeps = [ + "urllib3" + ]; + doCheck = false; + pythonImportsCheck = [ + "pinecone" + ]; + meta = with lib; { homepage = "https://www.pinecone.io/"; description = "The Pinecone python client"; license = licenses.mit; - maintainers = with maintainers; [happysalada]; + maintainers = with maintainers; [ happysalada ]; }; }