depot/third_party/nixpkgs/pkgs/development/python-modules/fastembed/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

53 lines
1,000 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, poetry-core
, onnxruntime
, requests
, tokenizers
, tqdm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "fastembed";
version = "0.1.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "qdrant";
repo = "fastembed";
rev = "refs/tags/v${version}";
hash = "sha256-FW85xeRcrPL3euXcQ3dS40SapimFgpWtRu6XiIzdzSM=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
onnxruntime
requests
tokenizers
tqdm
];
pythonImportsCheck = [ "fastembed" ];
nativeCheckInputs = [
pytestCheckHook
];
# there is one test and it requires network
doCheck = false;
meta = with lib; {
description = "Fast, Accurate, Lightweight Python library to make State of the Art Embedding";
homepage = "https://github.com/qdrant/fastembed";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
};
}