generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aeneas.nix
53 lines (45 loc) · 1.18 KB
/
aeneas.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
{ lib
, python3
, fetchFromGitHub
, espeak-classic
}:
python3.pkgs.buildPythonApplication rec {
pname = "aeneas";
version = "1.7.3";
pyproject = true;
src = fetchFromGitHub {
owner = "readbeyond";
repo = "aeneas";
rev = "v${version}";
hash = "sha256-rrh1ugzLWBNIxUOTXQhd5IepJNVpoe9mqMgIwidSqHE=";
};
nativeBuildInputs = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
buildInputs = [
espeak-classic
];
propagatedBuildInputs = with python3.pkgs; [
beautifulsoup4
lxml
numpy
];
pythonImportsCheck = [ "aeneas" ];
# no effect
/*
# add runtime env. fix:
# [WARN] The default input encoding is not UTF-8.
# [WARN] You might want to set 'PYTHONIOENCODING=UTF-8' in your shell.
makeWrapperArgs = [
"--set-default" "PYTHONIOENCODING" "UTF-8"
];
*/
meta = with lib; {
description = "Aeneas is a Python/C library and a set of tools to automagically synchronize audio and text (aka forced alignment";
homepage = "https://github.com/readbeyond/aeneas/";
changelog = "https://github.com/readbeyond/aeneas/blob/${src.rev}/CHANGELOG";
license = licenses.agpl3Only;
maintainers = with maintainers; [ ];
};
}