tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
wyoming-faster-whisper: 1.0.1 -> 1.0.2
Martin Weinelt
2 years ago
d1264ceb
627e84e0
+20
-44
2 changed files
expand all
collapse all
unified
split
pkgs
tools
audio
wyoming
faster-whisper-entrypoint.patch
faster-whisper.nix
-32
pkgs/tools/audio/wyoming/faster-whisper-entrypoint.patch
···
1
1
-
diff --git a/setup.py b/setup.py
2
2
-
index 04eedbc..ee0b495 100644
3
3
-
--- a/setup.py
4
4
-
+++ b/setup.py
5
5
-
@@ -35,4 +35,9 @@ setup(
6
6
-
"Programming Language :: Python :: 3.10",
7
7
-
],
8
8
-
keywords="rhasspy wyoming whisper",
9
9
-
+ entry_points={
10
10
-
+ 'console_scripts': [
11
11
-
+ 'wyoming-faster-whisper = wyoming_faster_whisper:__main__.run'
12
12
-
+ ]
13
13
-
+ }
14
14
-
)
15
15
-
diff --git a/wyoming_faster_whisper/__main__.py b/wyoming_faster_whisper/__main__.py
16
16
-
index 8a5039f..bd1e7b6 100755
17
17
-
--- a/wyoming_faster_whisper/__main__.py
18
18
-
+++ b/wyoming_faster_whisper/__main__.py
19
19
-
@@ -131,8 +131,12 @@ async def main() -> None:
20
20
-
21
21
-
# -----------------------------------------------------------------------------
22
22
-
23
23
-
+def run():
24
24
-
+ asyncio.run(main())
25
25
-
+
26
26
-
+
27
27
-
if __name__ == "__main__":
28
28
-
try:
29
29
-
- asyncio.run(main())
30
30
-
+ run()
31
31
-
except KeyboardInterrupt:
32
32
-
pass
+20
-12
pkgs/tools/audio/wyoming/faster-whisper.nix
···
1
1
{ lib
2
2
, python3
3
3
-
, fetchPypi
3
3
+
, fetchFromGitHub
4
4
, fetchpatch
5
5
}:
6
6
7
7
python3.pkgs.buildPythonApplication rec {
8
8
pname = "wyoming-faster-whisper";
9
9
-
version = "1.0.1";
10
10
-
format = "setuptools";
9
9
+
version = "1.0.2";
10
10
+
pyproject = true;
11
11
12
12
-
src = fetchPypi {
13
13
-
pname = "wyoming_faster_whisper";
14
14
-
inherit version;
15
15
-
hash = "sha256-wo62m8gIP9hXihkd8j2haVvz3TlJv3m5WWthTPFwesk=";
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "rhasspy";
14
14
+
repo = "wyoming-faster-whisper";
15
15
+
rev = "refs/tags/v${version}";
16
16
+
hash = "sha256-mKnWab3i6lEnCBbO3ucNmWIxaaWwQagzfDhaD1U3qow=";
16
17
};
17
18
18
19
patches = [
19
19
-
./faster-whisper-entrypoint.patch
20
20
+
# add wyoming-faster-whisper executable
21
21
+
(fetchpatch {
22
22
+
url = "https://github.com/rhasspy/wyoming-faster-whisper/commit/a5715197abab34253d2864ed8cf406210834b4ec.patch";
23
23
+
hash = "sha256-a9gmXMngwXo9ZJDbxl/pPzm6WSy5XeGbz/Xncj7bOog=";
24
24
+
})
20
25
21
26
# fix model retrieval on python3.11+
22
27
(fetchpatch {
23
23
-
url = "https://github.com/rhasspy/rhasspy3/commit/ea55a309e55384e6fd8c9f19534622968f8ed95b.patch";
24
24
-
hash = "sha256-V9WXKE3+34KGubBS23vELTHjqU2RCTk3sX8GTjmH+AA=";
25
25
-
stripLen = 4;
28
28
+
url = "https://github.com/rhasspy/wyoming-faster-whisper/commit/d5229df2c3af536013bc931c1ed7cc239b618208.patch";
29
29
+
hash = "sha256-CMpOJ1qSPcdtX2h2ecGmQ/haus/gaSH8r/PCFsMChRY=";
26
30
})
31
31
+
];
32
32
+
33
33
+
nativeBuildInputs = with python3.pkgs; [
34
34
+
setuptools
27
35
];
28
36
29
37
propagatedBuildInputs = with python3.pkgs; [
···
41
49
42
50
meta = with lib; {
43
51
description = "Wyoming Server for Faster Whisper";
44
44
-
homepage = "https://pypi.org/project/wyoming-faster-whisper/";
52
52
+
homepage = "https://github.com/rhasspy/wyoming-faster-whisper";
45
53
license = licenses.mit;
46
54
maintainers = with maintainers; [ hexa ];
47
55
};