anchor.diff:    name = "flexget-${version}";
     version = "2.0.24";
   
  -  src = fetchurl {
  -    url = "https://github.com/Flexget/Flexget/archive/${version}.tar.gz";
  -    sha256 = "1afef61d2da1f4a8cca0bf13e3da80ebfee615afcf071902e7d836e2c6abf96f";
  +  src = fetchPyPi {
  +    package = "FlexGet";
  +    inherit version;
  +    sha256 = "ab03b63cab522ace9ab8cd59e9c98a72b9239d3b425187096b2289a46d5bcc56";
     };
   
     postPatch =
  
positive.code:     pythonPackages.jinja2
      pythonPackages.jsonschema
      pythonPackages.pathpy
      pythonPackages.paver
      pythonPackages.progressbar
      pythonPackages.pynzb
      pythonPackages.pyparsing
      pythonPackages.pyrss2gen
      pythonPackages.python-dateutil
      pythonPackages.python-tvrage
      pythonPackages.pyyaml
      pythonPackages.requests2
      pythonPackages.rpyc
      pythonPackages.safe
      pythonPackages.sqlalchemy
      pythonPackages.tmdb3
      pythonPackages.transmissionrpc
    ] ++ optionals (pythonOlder "3.4") [
      pythonPackages.pathlib
  
negative.code: { stdenv
  , buildPythonPackage
  , config
  , fetchPyPi
  
  , pkgs
  , pythonPackages
  }:
  
  