python3Packages.sentence-transformers: init at 2.2.2

This commit is contained in:
Mostly Void 2023-02-07 19:06:09 +05:30
parent a82499fc5d
commit 500b491a25
No known key found for this signature in database
GPG Key ID: E2B7342D0CAA82C2
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ 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";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
};
}

View File

@ -10413,6 +10413,8 @@ self: super: with self; {
inherit (pkgs) sentencepiece;
};
sentence-transformers = callPackage ../development/python-modules/sentence-transformers { };
sentinel = callPackage ../development/python-modules/sentinel { };
sentinels = callPackage ../development/python-modules/sentinels { };