blob: 9c439149964df7a077c2acf46b0a46f178a7e30c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, huggingface-hub
, nltk
, numpy
, scikit-learn
, scipy
, sentencepiece
, tokenizers
, torch
, torchvision
, tqdm
, transformers
}:
buildPythonPackage rec {
pname = "sentence-transformers";
version = "2.2.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "UKPLab";
repo = "sentence-transformers";
rev = "v${version}";
hash = "sha256-hEYpDAL0lliaS1j+c5vaZ0q1hw802jfTUurx/FvgY9w=";
};
propagatedBuildInputs = [
huggingface-hub
nltk
numpy
scikit-learn
scipy
sentencepiece
tokenizers
torch
torchvision
tqdm
transformers
];
pythonImportsCheck = [ "sentence_transformers" ];
doCheck = false; # tests fail at build_ext
meta = with lib; {
description = "Multilingual Sentence & Image Embeddings with BERT";
homepage = "https://github.com/UKPLab/sentence-transformers";
changelog = "https://github.com/UKPLab/sentence-transformers/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
};
}
|