python3Packages.sentence-splitter: init at 1.4

This commit is contained in:
Pavel Sobolev 2023-09-26 12:47:09 +03:00 committed by Anderson Torres
parent 87d05edb95
commit 2f690a9306
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
, regex
}:
buildPythonPackage rec {
pname = "sentence-splitter";
version = "1.4";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "mediacloud";
repo = "sentence-splitter";
rev = version;
hash = "sha256-FxRi8fhKB9++lCTFpCAug0fxjkSVTKChLY84vkshR34=";
};
propagatedBuildInputs = [
regex
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"sentence_splitter"
];
meta = with lib; {
description = "Text to sentence splitter using heuristic algorithm by Philipp Koehn and Josh Schroeder";
homepage = "https://github.com/mediacloud/sentence-splitter";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ paveloom ];
};
}

View File

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