summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sentence-stream/default.nix
blob: 0695dd4d9e6f13b68893e78d53eecb3f0cff4c2b (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
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  regex,
  pytest-asyncio,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "sentence-stream";
  version = "1.2.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "OHF-Voice";
    repo = "sentence-stream";
    tag = "v${version}";
    hash = "sha256-KCKOiY2x+gj02PR0ps2e5Ei6o17tk5ujgCTr3/fkV0Y=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    regex
  ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "sentence_stream"
  ];

  meta = {
    description = "Small sentence splitter for text streams";
    homepage = "https://github.com/OHF-Voice/sentence-stream";
    changelog = "https://github.com/OHF-Voice/sentence-stream/blob/${src.tag}/CHANGELOG.md";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ hexa ];
  };
}