2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-04-21 15:54:59 +00:00
|
|
|
, dnspython
|
2023-04-12 12:48:02 +00:00
|
|
|
, fetchPypi
|
2024-04-21 15:54:59 +00:00
|
|
|
, loguru
|
|
|
|
, numpy
|
2024-01-25 14:12:00 +00:00
|
|
|
, poetry-core
|
2024-04-21 15:54:59 +00:00
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
2024-01-25 14:12:00 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-04-12 12:48:02 +00:00
|
|
|
, pyyaml
|
|
|
|
, requests
|
2024-04-21 15:54:59 +00:00
|
|
|
, setuptools
|
|
|
|
, tqdm
|
2023-04-12 12:48:02 +00:00
|
|
|
, typing-extensions
|
2024-04-21 15:54:59 +00:00
|
|
|
, urllib3
|
2023-04-12 12:48:02 +00:00
|
|
|
}:
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pinecone-client";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "4.0.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
src = fetchPypi {
|
2024-01-25 14:12:00 +00:00
|
|
|
pname = "pinecone_client";
|
|
|
|
inherit version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-1E2yEuZKo0PRTvybCOnkXZi6e2gfYymLhwM1QuoBfyM=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"urllib3"
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
build-system = [
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools
|
2024-01-25 14:12:00 +00:00
|
|
|
poetry-core
|
2024-01-13 08:15:51 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
|
|
|
dnspython
|
|
|
|
loguru
|
2023-04-12 12:48:02 +00:00
|
|
|
numpy
|
|
|
|
python-dateutil
|
2024-04-21 15:54:59 +00:00
|
|
|
pyyaml
|
2023-04-12 12:48:02 +00:00
|
|
|
requests
|
2024-04-21 15:54:59 +00:00
|
|
|
tqdm
|
2023-04-12 12:48:02 +00:00
|
|
|
typing-extensions
|
2024-04-21 15:54:59 +00:00
|
|
|
urllib3
|
2024-01-25 14:12:00 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# Tests require network access
|
2023-04-12 12:48:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pinecone"
|
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "The Pinecone python client";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://www.pinecone.io/";
|
|
|
|
changelog = "https://github.com/pinecone-io/pinecone-python-client/releases/tag/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
license = licenses.mit;
|
2024-01-25 14:12:00 +00:00
|
|
|
maintainers = with maintainers; [ happysalada ];
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
}
|