Merge pull request #320049 from GaetanLepage/fastembed
python311Packages.fastembed: 0.2.7 -> 0.3.0
This commit is contained in:
commit
2839e63e41
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user