mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
python3Packages.speechrecognition: devendor dependencies
This commit is contained in:
parent
adc0357732
commit
9eea49356e
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user