summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sentence-splitter/default.nix
blob: 3ea69c152605a37a4c2948d70152c27c70ac33f8 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  pytestCheckHook,
  regex,
}:

buildPythonPackage rec {
  pname = "sentence-splitter";
  version = "1.4";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mediacloud";
    repo = "sentence-splitter";
    rev = version;
    hash = "sha256-FxRi8fhKB9++lCTFpCAug0fxjkSVTKChLY84vkshR34=";
  };

  propagatedBuildInputs = [ regex ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "sentence_splitter" ];

  meta = {
    description = "Text to sentence splitter using heuristic algorithm by Philipp Koehn and Josh Schroeder";
    homepage = "https://github.com/mediacloud/sentence-splitter";
    license = lib.licenses.lgpl3Plus;
    maintainers = [ ];
  };
}