depot/third_party/nixpkgs/pkgs/development/python-modules/chroma-hnswlib/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 lines
853 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
pybind11,
setuptools,
wheel,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "chroma-hnswlib";
version = "0.7.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "chroma-core";
repo = "hnswlib";
rev = "refs/tags/${version}";
hash = "sha256-pjz5SGg2drO6fkml9ojFG7/Gq3/Y7vPaOHc+3LKnjUw=";
};
nativeBuildInputs = [
numpy
pybind11
setuptools
wheel
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "hnswlib" ];
meta = with lib; {
description = "Header-only C++/python library for fast approximate nearest neighbors";
homepage = "https://github.com/chroma-core/hnswlib";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}