anchor.diff:    '';
   
     checkInputs = with python3Packages; [
  +    pytest-sugar
       pytestCheckHook
     ];
   
  
positive.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.13
  #
  # 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.13";
  
    src = fetchFromGitHub {
      owner = "coqui-ai";
      repo = "TTS";
      rev = "v${version}";
      sha256 = "1sh7sjkh7ihbkqc7sl4hnzci0n7gv4s140dykpb1havaqyfhjn8l";
    };
  
    preBuild = ''
      sed -i -e 's!librosa==[^"]*!librosa!' requirements.txt
      sed -i -e 's!unidecode==[^"]*!unidecode!' requirements.txt
      sed -i -e 's!numpy==[^"]*!numpy!' requirements.txt
      sed -i -e 's!umap-learn==[^"]*!umap-learn!' requirements.txt
    '';
  
negative.code:     "test_torch_stft"
      "test_stft_loss"
      "test_multiscale_stft_loss"
      # Requires network acccess to download models
      "test_synthesize"
    ];
  