depot/third_party/nixpkgs/pkgs/development/python-modules/chroma-hnswlib/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

47 lines
854 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pybind11
, setuptools
, wheel
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "chroma-hnswlib";
version = "0.7.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "chroma-core";
repo = "hnswlib";
rev = "refs/tags/${version}";
hash = "sha256-c4FvymqZy8AZKbh6Y8xZRjKAqYcUyZABRGc1u7vwlsk=";
};
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 ];
};
}