17 # Maintainer note: only in-tree dependant is `dragonfly`, try to
18 # update the two alongside eachother.
22 kaldi = callPackage ./fork.nix { };
24 buildPythonPackage rec {
25 pname = "kaldi-active-grammar";
28 src = fetchFromGitHub {
32 sha256 = "0lilk6yjzcy31avy2z36bl9lr60gzwhmyqwqn8akq11qc3mbffsk";
36 KALDIAG_SETUP_RAW = "1";
39 # Makes sure scikit-build doesn't try to build the dependencies for us
41 # Uses the dependencies' binaries from $PATH instead of a specific directory
42 ./0002-exec-path.patch
43 # Makes it dynamically link to the correct Kaldi library
45 src = ./0003-ffi-path.patch;
46 kaldiFork = "${kaldi}/lib";
50 # scikit-build puts us in the wrong folder. That is bad.
55 buildInputs = [ openfst kaldi ];
56 nativeBuildInputs = [ scikit-build cmake ];
57 propagatedBuildInputs = [ ush requests numpy cffi six ];
59 doCheck = false; # no tests exist
62 description = "Python Kaldi speech recognition";
63 homepage = "https://github.com/daanzu/kaldi-active-grammar";
64 license = licenses.agpl3Plus;
65 maintainers = with maintainers; [ ckie ];
66 # Other platforms are supported upstream.
67 platforms = platforms.linux;