gnu: kaldi-gstreamer-server: Fix bug.

* gnu/packages/machine-learning.scm (kaldi-gstreamer-server)[arguments]: Patch
master_server.py before build.
This commit is contained in:
Ricardo Wurmus 2020-04-30 13:04:55 +02:00
parent cb44af24c8
commit 46d07f8472
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1269,6 +1269,10 @@ (define-public kaldi-gstreamer-server
;; are reproducible.
(setenv "PYTHONHASHSEED" "0")
(with-directory-excursion "kaldigstserver"
;; See https://github.com/alumae/kaldi-gstreamer-server/issues/232
(substitute* "master_server.py"
(("\\.replace\\('\\\\.*") ")"))
;; This is a Python 2 file
(delete-file "decoder_test.py")
(delete-file "test-buffer.py")