26 buildPythonPackage rec {
29 format = "setuptools";
31 src = fetchFromGitHub {
32 owner = "dictation-toolbox";
35 hash = "sha256-sqEEEr5/KG3cn4rmOGJt9zMNAjeLO6h3NJgg0EyewrM=";
39 substituteInPlace setup.py --replace 'lark-parser == 0.8.*' 'lark'
40 substituteInPlace dragonfly/actions/keyboard/_x11_xdotool.py \
41 --replace 'xdotool = "xdotool"'${" "}'xdotool = "${xdotool}/bin/xdotool"'
42 substituteInPlace dragonfly/windows/x11_window.py \
43 --replace 'xdotool = "xdotool"'${" "}'xdotool = "${xdotool}/bin/xdotool"' \
44 --replace 'xprop = "xprop"'${" "}'xprop = "${xorg.xprop}/bin/xprop"' \
45 --replace 'wmctrl = "wmctrl"'${" "}'wmctrl = "${wmctrl}/bin/wmctrl"'
48 propagatedBuildInputs = [
61 kaldi-active-grammar # for the Kaldi engine
64 setuptools # needs pkg_resources at runtime
67 # Too many tests fail because of the unusual environment or
68 # because of the missing dependencies for some of the engines.
71 pythonImportsCheck = [ "dragonfly" ];
74 description = "Speech recognition framework allowing powerful Python-based scripting";
75 homepage = "https://github.com/dictation-toolbox/dragonfly";
76 license = licenses.lgpl3Plus;