nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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.3.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "OHF-Voice";
18 repo = "sentence-stream";
19 tag = "v${version}";
20 hash = "sha256-UVoRto2zGf+GZFcYt4NC63Fm9iS7DWgwH7sJrrHxvXs=";
21 };
22
23 build-system = [
24 setuptools
25 ];
26
27 dependencies = [
28 regex
29 ];
30
31 nativeCheckInputs = [
32 pytest-asyncio
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [
37 "sentence_stream"
38 ];
39
40 meta = {
41 description = "Small sentence splitter for text streams";
42 homepage = "https://github.com/OHF-Voice/sentence-stream";
43 changelog = "https://github.com/OHF-Voice/sentence-stream/blob/${src.tag}/CHANGELOG.md";
44 license = lib.licenses.asl20;
45 maintainers = with lib.maintainers; [ hexa ];
46 };
47}