2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
dnspython,
|
|
|
|
fetchPypi,
|
|
|
|
loguru,
|
|
|
|
numpy,
|
|
|
|
poetry-core,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
tqdm,
|
|
|
|
typing-extensions,
|
|
|
|
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-06-05 15:53:02 +00:00
|
|
|
version = "4.1.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-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-QgYqYo56lB0Lwku4r7Am861NJkzwbWpiej3lgyFK494=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "urllib3" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
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-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pinecone" ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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
|
|
|
};
|
|
|
|
}
|