generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
63 lines (63 loc) · 1.3 KB
/
default.nix
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{ pkgs
, lib
, python3Packages
, buildPythonPackage ? python3Packages.buildPythonPackage
, fetchPypi ? python3Packages.fetchPypi
, auditok
, pysubs2
,
}:
buildPythonPackage rec {
pname = "ffsubsync";
version = "0.4.26";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-GsA6gy7bqdqIzu7XU+Laqk5iC2Mv15SXEMsxUWthFBA=";
};
preBuild = ''
rm ffsubsync/ffsubsync_gui.py
cat > requirements.txt << EOF
auditok==0.1.5
chardet;python_version>='3.7'
charset_normalizer
faust-cchardet
ffmpeg-python
future>=0.18.2
numpy>=1.12.0
pysubs2;python_version<'3.7'
pysubs2>=1.2.0;python_version>='3.7'
rich
six
srt>=3.0.0
tqdm
typing_extensions
webrtcvad;platform_system!='Windows'
webrtcvad-wheels;platform_system=='Windows'
EOF
'';
propagatedBuildInputs =
(with python3Packages; [
chardet
charset-normalizer
faust-cchardet
ffmpeg-python
future
numpy
rich
six
srt
tqdm
typing-extensions
webrtcvad
])
++ [
auditok
pysubs2
];
meta = with lib; {
description = "Automagically synchronize subtitles with video";
homepage = "https://github.com/smacke/ffsubsync";
license = licenses.mit;
maintainers = [ lib.maintainers.kugland ];
};
}