anchor.diff:      "test_torch_stft"
       "test_stft_loss"
       "test_multiscale_stft_loss"
  -    # assert tensor(1.1904e-07, dtype=torch.float64) <= 0
  -    "test_parametrized_gan_dataset"
  -    # RuntimeError: expected scalar type Double but found Float
  -    "test_speaker_embedding"
       # Requires network acccess to download models
       "test_synthesize"
     ];
  
positive.code:   ];
  
    propagatedBuildInputs = with python3Packages; [
      flask
      gdown
      inflect
      jieba
      librosa
      matplotlib
      pandas
      phonemizer
      pypinyin
      pysbd
      pytorch
  
negative.code: #
  # If you upgrade from an old version you may have to delete old models from ~/.local/share/tts
  # Also note that your tts version might not support all available models so check:
  #   https://github.com/coqui-ai/TTS/releases/tag/v0.0.14
  #
  # For now, for deployment check the systemd unit in the pull request:
  #   https://github.com/NixOS/nixpkgs/pull/103851#issue-521121136
  
  python3Packages.buildPythonApplication rec {
    pname = "tts";
    version = "0.0.14";
  
    src = fetchFromGitHub {
      owner = "coqui-ai";
      repo = "TTS";
      rev = "v${version}";
      sha256 = "0cl0ri90mx0y19fmqww73lp5nv6qkpc45rm4157i7p6q6llajdhp";
    };
  
    postPatch = ''
      sed -i -e 's!librosa==[^"]*!librosa!' requirements.txt
      sed -i -e 's!unidecode==[^"]*!unidecode!' requirements.txt
      sed -i -e 's!numba==[^"]*!numba!' requirements.txt
      sed -i -e 's!numpy==[^"]*!numpy!' requirements.txt
      sed -i -e 's!umap-learn==[^"]*!umap-learn!' requirements.txt
    '';
  