From 02da874176afd50fd526639503354fdbb8eecaa8 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 15 Jun 2024 15:00:08 +0200 Subject: [PATCH] python311Packages.fastembed: 0.2.7 -> 0.3.0 Diff: https://github.com/qdrant/fastembed/compare/refs/tags/v0.2.7...v0.3.0 Changelog: https://github.com/qdrant/fastembed/releases/tag/v0.3.0 --- .../python-modules/fastembed/default.nix | 42 ++++++++++++------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/fastembed/default.nix b/pkgs/development/python-modules/fastembed/default.nix index 3aab5ddc6a29..005e514ff3c2 100644 --- a/pkgs/development/python-modules/fastembed/default.nix +++ b/pkgs/development/python-modules/fastembed/default.nix @@ -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" ]; }; }