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