Files
nixpkgs/pkgs/development/python-modules/pinecone/default.nix
2026-07-23 19:40:57 -04:00

52 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
buildPackages,
fetchFromGitHub,
httpx,
msgspec,
orjson,
rustPlatform,
}:
buildPythonPackage rec {
pname = "pinecone";
version = "9.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pinecone-io";
repo = "pinecone-python-client";
tag = "v${version}";
hash = "sha256-yWGW9qx4zb4FnDLXvtXREYXRO7e5Jk/KJoaQlpKMwpg=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-I3pIy9by+OHo6iU6OZp3VvJJPZOmJ/CYhkzoV8xHoMY=";
};
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
env.PROTOC = "${lib.getExe buildPackages.protobuf}";
dependencies = [
httpx
msgspec
orjson
];
pythonImportsCheck = [ "pinecone" ];
meta = {
description = "Pinecone Python SDK";
homepage = "https://www.pinecone.io/";
changelog = "https://github.com/pinecone-io/python-sdk/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ happysalada ];
};
}