Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
838 B · 44 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445{ 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"; tag = 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 ]; };}