Skip to content

Commit 2d1f829

Browse files
authored
python312Packages.fastembed: 0.5.0 -> 0.5.1 (#383628)
2 parents 12bebd9 + 76f1d66 commit 2d1f829

File tree

5 files changed

+431
-15
lines changed

5 files changed

+431
-15
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'

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,20 @@
22
lib,
33
fetchFromGitHub,
44
buildPythonPackage,
5-
pythonOlder,
65
setuptools,
76
pytestCheckHook,
87
}:
98

109
buildPythonPackage rec {
1110
pname = "mmh3";
12-
version = "5.0.1";
11+
version = "5.1.0";
1312
pyproject = true;
1413

15-
disabled = pythonOlder "3.8";
16-
1714
src = fetchFromGitHub {
1815
owner = "hajimes";
1916
repo = "mmh3";
2017
tag = "v${version}";
21-
hash = "sha256-no3wbBxEz1UPiN25HvZGAUV1QxZydJB0Hb2Ib9ZrAUY=";
18+
hash = "sha256-56LrJuoBvhGgw+w4GIQ0XEQtf5oR87el+gZxgBYkyx0=";
2219
};
2320

2421
build-system = [ setuptools ];
@@ -27,11 +24,11 @@ buildPythonPackage rec {
2724

2825
nativeCheckInputs = [ pytestCheckHook ];
2926

30-
meta = with lib; {
27+
meta = {
3128
description = "Python wrapper for MurmurHash3, a set of fast and robust hash functions";
3229
homepage = "https://github.com/hajimes/mmh3";
3330
changelog = "https://github.com/hajimes/mmh3/blob/v${version}/CHANGELOG.md";
34-
license = licenses.cc0;
31+
license = lib.licenses.cc0;
3532
maintainers = [ ];
3633
};
3734
}

0 commit comments

Comments
 (0)