1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 openfst,
6 pkg-config,
7 python3,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "phonetisaurus";
12 version = "0.9.1";
13
14 src = fetchFromGitHub {
15 owner = "AdolfVonKleist";
16 repo = pname;
17 rev = version;
18 sha256 = "1b18s5zz0l0fhqh9n9jnmgjz2hzprwzf6hx5a12zibmmam3qyriv";
19 };
20
21 enableParallelBuilding = true;
22
23 nativeBuildInputs = [ pkg-config ];
24
25 buildInputs = [
26 python3
27 openfst
28 ];
29
30 meta = with lib; {
31 description = "Framework for Grapheme-to-phoneme models for speech recognition using the OpenFst framework";
32 inherit (src.meta) homepage;
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ mic92 ];
35 platforms = platforms.unix;
36 };
37}