Skip to content

Commit 76f1d66

Browse files
committed
1 parent e5ac19d commit 76f1d66

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

pkgs/development/python-modules/fastembed/default.nix

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
lib,
33
buildPythonPackage,
4-
pythonOlder,
54
fetchFromGitHub,
65

76
# build-system
@@ -12,9 +11,9 @@
1211
loguru,
1312
mmh3,
1413
numpy,
15-
onnx,
1614
onnxruntime,
1715
pillow,
16+
py-rust-stemmers,
1817
pystemmer,
1918
requests,
2019
snowballstemmer,
@@ -24,16 +23,14 @@
2423

2524
buildPythonPackage rec {
2625
pname = "fastembed";
27-
version = "0.5.0";
26+
version = "0.5.1";
2827
pyproject = true;
2928

30-
disabled = pythonOlder "3.8";
31-
3229
src = fetchFromGitHub {
3330
owner = "qdrant";
3431
repo = "fastembed";
3532
tag = "v${version}";
36-
hash = "sha256-jroYfmcwiqrAQgQuNHMdOBWqivgSAR7yUvr2ogb3dy8=";
33+
hash = "sha256-aVeQC0BooVZcbIplVRzY22ozliWW/Ts/asiInTxSBOE=";
3734
};
3835

3936
build-system = [ poetry-core ];
@@ -43,9 +40,9 @@ buildPythonPackage rec {
4340
loguru
4441
mmh3
4542
numpy
46-
onnx
4743
onnxruntime
4844
pillow
45+
py-rust-stemmers
4946
pystemmer
5047
requests
5148
snowballstemmer
@@ -56,6 +53,7 @@ buildPythonPackage rec {
5653
pythonImportsCheck = [ "fastembed" ];
5754

5855
pythonRelaxDeps = [
56+
"mmh3"
5957
"onnxruntime"
6058
"pillow"
6159
];
@@ -66,7 +64,7 @@ buildPythonPackage rec {
6664
meta = {
6765
description = "Fast, Accurate, Lightweight Python library to make State of the Art Embedding";
6866
homepage = "https://github.com/qdrant/fastembed";
69-
changelog = "https://github.com/qdrant/fastembed/releases/tag/${src.tag}";
67+
changelog = "https://github.com/qdrant/fastembed/releases/tag/v${version}";
7068
license = lib.licenses.asl20;
7169
maintainers = with lib.maintainers; [ happysalada ];
7270
# terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException'

0 commit comments

Comments
 (0)