aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/phonetisaurus/default.nix
blob: 126a91fe29005076e664d27ffbe606f1fcf93555 (plain)
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
{ stdenv
, fetchFromGitHub
, openfst
, pkg-config
, python3
}:

stdenv.mkDerivation rec {
  pname = "phonetisaurus";
  version = "2020-07-31";

  src = fetchFromGitHub {
    owner = "AdolfVonKleist";
    repo = pname;
    rev = "2831870697de5b4fbcb56a6e1b975e0e1ea10deb";
    sha256 = "1b18s5zz0l0fhqh9n9jnmgjz2hzprwzf6hx5a12zibmmam3qyriv";
  };

  enableParallelBuilding = true;

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ python3 openfst ];

  meta = with stdenv.lib; {
    description = "Framework for Grapheme-to-phoneme models for speech recognition using the OpenFst framework";
    inherit (src.meta) homepage;
    license = licenses.bsd3;
    maintainers = with maintainers; [ mic92 ];
    platforms = platforms.unix;
  };
}