anchor.diff:      pytest
     ];
   
  -  patches = optionals (channel == "stable") [
  -    # Remove for 1.3.16
  -    (fetchTritonPatch {
  -      rev = "fb4f50bb98024562652d4bfd702b660f2ae3cfe4";
  -      file = "d/deluge/deluge-1.3.15-fix-preferences-dialog.patch";
  -      sha256 = "01e01364dd41b0dcd69871a973448f50a5c8efb4e13dd456569e21259e1dc06c";
  -    })
  -  ];
  -
  -  postPatch = optionalString (channel == "head") (
  +  postPatch = (
       /* Using an invalid version breaks compatibility with some trackers */ ''
         sed -i setup.py \
           -e 's/_version = .*/_version = "${sources.stable.version}"/' # .dev"/'
  
positive.code: { stdenv
  , buildPythonPackage
  , fetchgit
  , fetchTritonPatch
  , fetchurl
  , gettext
  , intltool
  , isPy3
  
negative.code:     ${python.interpreter} setup.py build
    '';
  
    postInstall = ''
      mkdir -pv $out/share/applications
      cp -Rv deluge/ui/data/pixmaps $out/share/
      cp -Rv deluge/ui/data/icons $out/share/
  