1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # optional-dependencies
10 zeroconf,
11
12 # tests
13 wyoming-faster-whisper,
14 wyoming-openwakeword,
15 wyoming-piper,
16}:
17
18buildPythonPackage rec {
19 pname = "wyoming";
20 version = "1.7.2";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "rhasspy";
25 repo = "wyoming";
26 tag = version;
27 hash = "sha256-tLwMysBxNPk5ztkwuuOhChhGgY+uEE9uA4S5ZVlVtY0=";
28 };
29
30 build-system = [ setuptools ];
31
32 optional-dependencies = {
33 zeroconf = [ zeroconf ];
34 };
35
36 pythonImportsCheck = [ "wyoming" ];
37
38 # no tests
39 doCheck = false;
40
41 passthru.tests = {
42 inherit wyoming-faster-whisper wyoming-openwakeword wyoming-piper;
43 };
44
45 meta = with lib; {
46 changelog = "https://github.com/rhasspy/wyoming/releases/tag/${src.tag}";
47 description = "Protocol for Rhasspy Voice Assistant";
48 homepage = "https://github.com/rhasspy/wyoming";
49 license = licenses.mit;
50 maintainers = with maintainers; [ hexa ];
51 };
52}