Merge pull request #320049 from GaetanLepage/fastembed

python311Packages.fastembed: 0.2.7 -> 0.3.0
This commit is contained in:
Yt 2024-06-15 13:56:59 +00:00 committed by GitHub
commit 2839e63e41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,23 +1,31 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pythonRelaxDepsHook,
# build-system
poetry-core,
# dependencies
huggingface-hub,
loguru,
pythonOlder,
pythonRelaxDepsHook,
poetry-core,
mmh3,
numpy,
onnx,
onnxruntime,
pillow,
pystemmer,
requests,
snowballstemmer,
tokenizers,
tqdm,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fastembed";
version = "0.2.7";
version = "0.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
@ -26,7 +34,7 @@ buildPythonPackage rec {
owner = "qdrant";
repo = "fastembed";
rev = "refs/tags/v${version}";
hash = "sha256-ArLilvixzpHIGGAom4smX0jZ6lJSZe6tSGreeD+Pzmk=";
hash = "sha256-Tfj0YdUW/Nnvn4+RoOWj9l0gDkWbpVgiADA09ht4xxM=";
};
build-system = [ poetry-core ];
@ -36,30 +44,32 @@ buildPythonPackage rec {
dependencies = [
huggingface-hub
loguru
mmh3
numpy
onnx
onnxruntime
pillow
pystemmer
requests
snowballstemmer
tokenizers
tqdm
];
pythonImportsCheck = [ "fastembed" ];
pythonRelaxDeps = [
"huggingface-hub"
"onnxruntime"
"tokenizers"
];
nativeCheckInputs = [ pytestCheckHook ];
pythonRelaxDeps = [ "onnxruntime" ];
# there is one test and it requires network
doCheck = false;
meta = with lib; {
meta = {
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 ];
changelog = "https://github.com/qdrant/fastembed/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ happysalada ];
# terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException'
badPlatforms = [ "aarch64-linux" ];
};
}