about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2024-01-24 12:32:04 -0500
committerGitHub <noreply@github.com>2024-01-24 12:32:04 -0500
commit611db16452cd8800622ded5336196e2e2badbac5 (patch)
tree1514f9443c1d1a6b4f7d8ad76f3e53b05c2519ba /pkgs/development
parent435535d968d324f01dbc7af428a716060a951088 (diff)
parentb45173c6ada51960cd81ab077c46de667d593c6c (diff)
Merge pull request #282741 from wegank/pinecone-fix
python311Packages.pinecone-client: fix build
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/pinecone-client/default.nix17
1 files 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 2b75974996320..625779d17fe18 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 ];
   };
 }