Files
nixpkgs/pkgs/development/python-modules/chroma-hnswlib/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
836 B
Nix

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