Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / sentence-splitter / default.nix
blob38ebc7fd6e2e71ccb90868937c18adb0d33569ca
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
6 , pytestCheckHook
7 , regex
8 }:
10 buildPythonPackage rec {
11   pname = "sentence-splitter";
12   version = "1.4";
13   format = "setuptools";
15   disabled = pythonOlder "3.5";
17   src = fetchFromGitHub {
18     owner = "mediacloud";
19     repo = "sentence-splitter";
20     rev = version;
21     hash = "sha256-FxRi8fhKB9++lCTFpCAug0fxjkSVTKChLY84vkshR34=";
22   };
24   propagatedBuildInputs = [
25     regex
26   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [
33     "sentence_splitter"
34   ];
36   meta = with lib; {
37     description = "Text to sentence splitter using heuristic algorithm by Philipp Koehn and Josh Schroeder";
38     homepage = "https://github.com/mediacloud/sentence-splitter";
39     license = licenses.lgpl3Plus;
40     maintainers = with maintainers; [ ];
41   };