depot/third_party/nixpkgs/pkgs/development/python-modules/sentence-splitter/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

41 lines
810 B
Nix

{ 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 ];
};
}