python3Packages.speechrecognition: devendor dependencies

This commit is contained in:
jopejoe1 2024-08-14 22:15:10 +02:00
parent adc0357732
commit 9eea49356e

View File

@ -10,6 +10,7 @@
setuptools,
soundfile,
typing-extensions,
flac,
}:
buildPythonPackage rec {
@ -26,6 +27,15 @@ buildPythonPackage rec {
hash = "sha256-icXZUg2lVLo8Z5t9ptDj67BjQLnEgrG8geYZ/lZeJt4=";
};
postPatch = ''
# Remove Bundled binaries
rm speech_recognition/flac-*
rm -r third-party
substituteInPlace speech_recognition/audio.py \
--replace-fail 'shutil_which("flac")' '"${lib.getExe flac}"'
'';
build-system = [ setuptools ];
dependencies = [