Commit 9eea4935 authored by jopejoe1's avatar jopejoe1
Browse files

python3Packages.speechrecognition: devendor dependencies

parent adc03577
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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 = [