1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 regex,
7 pytest-asyncio,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "sentence-stream";
13 version = "1.2.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "OHF-Voice";
18 repo = "sentence-stream";
19 tag = "v${version}";
20 hash = "sha256-xGxgGOl8PM5Nc7ApeiRKdaKeoxsc/a7oBF+Ld+vtYDo=";
21 };
22
23 build-system = [
24 setuptools
25 ];
26
27 dependencies = [
28 regex
29 ];
30
31 pythonRelaxDeps = [
32 "regex"
33 ];
34
35 nativeCheckInputs = [
36 pytest-asyncio
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [
41 "sentence_stream"
42 ];
43
44 meta = {
45 description = "A small sentence splitter for text streams";
46 homepage = "https://github.com/OHF-Voice/sentence-stream";
47 changelog = "https://github.com/OHF-Voice/sentence-stream/blob/${src.tag}/CHANGELOG.md";
48 license = lib.licenses.asl20;
49 maintainers = with lib.maintainers; [ hexa ];
50 };
51}