anchor.diff:  
   in buildPythonPackage rec {
     name = "beets-${version}";
  -  version = "1.3.16";
  +  version = "1.3.17";
     namePrefix = "";
   
     src = fetchFromGitHub {
       owner = "sampsyo";
       repo = "beets";
       rev = "v${version}";
  -    sha256 = "1grjcgr419yq756wwxjpzyfjdf8n51bg6i0agm465lb7l3jgqy6k";
  +    sha256 = "1fskxx5xxjqf4xmfjrinh7idjiq6qncb24hiyccv09l47fr1yipc";
     };
  +
  +  nativeBuildInputs = [
  +    makeWrapper
  +  ];
  +
  +  propagatedBuildInputs = [
  +    pythonPackages.enum34
  +    pythonPackages.jellyfish
  +    pythonPackages.munkres
  +    pythonPackages.musicbrainzngs
  +    pythonPackages.mutagen
  +    pythonPackages.pathlib
  +    pythonPackages.pyyaml
  +    pythonPackages.unidecode
  +  ] ++ optional enableAcoustid pythonPackages.pyacoustid
  +    ++ optional (
  +      enableFetchart
  +      || enableEmbyUpdate
  +      || enableAcousticbrainz) pythonPackages.requests2
  +    ++ optional enableDiscogs pythonPackages.discogs_client
  +    ++ optional enableEchonest pythonPackages.pyechonest
  +    ++ optional enableLastfm pythonPackages.pylast
  +    ++ optional enableMpd pythonPackages.mpd
  +    ++ optional enableThumbnails pythonPackages.pyxdg
  +    ++ optional enableWeb pythonPackages.flask
  +    ++ optional enableAlternatives (import ./alternatives-plugin.nix {
  +      inherit stdenv buildPythonPackage pythonPackages fetchFromGitHub;
  +    });
  +
  +  buildInputs = with pythonPackages; [
  +    beautifulsoup4
  +    imagemagick
  +    mock
  +    nose
  +    rarfile
  +    responses
  +  ] ++ optionals enableBpd [
  +    gst-plugins-base_0
  +    gstreamer_0
  +  ];
   
     patches = [
       (fetchTritonPatch {
  
positive.code:     optionalString;
  };
  
  assert enableAcoustid    -> pythonPackages.pyacoustid     != null;
  assert enableBadfiles    -> flac != null && mp3val != null;
  assert enableBpd         -> pythonPackages.pygobject_2 != null &&
                              gst_python != null &&
                              gst_plugins_base != null;
  assert enableDiscogs     -> pythonPackages.discogs_client != null;
  assert enableEchonest    -> pythonPackages.pyechonest     != null;
  assert enableFetchart    -> pythonPackages.responses      != null;
  assert enableLastfm      -> pythonPackages.pylast         != null;
  assert enableMpd         -> pythonPackages.mpd            != null;
  assert enableReplaygain  -> bs1770gain                    != null;
  assert enableThumbnails  -> pythonPackages.pyxdg          != null;
  assert enableWeb         -> pythonPackages.flask          != null;
  
  let
    optionalPlugins = {
      badfiles = enableBadfiles;
      bpd = enableBpd;
      chroma = enableAcoustid;
  
negative.code:       test/test_replaygain.py
    '';
  
    makeWrapperArgs = optionals enableBpd [
      "--prefix GST_PLUGIN_PATH : ${
        makeSearchPath "lib/gstreamer-0.10" [ gst-plugins-base_0 ]}"
    ];
  
    preCheck = ''
      (${concatMapStrings (s: "echo \"${s}\";") allPlugins}) \
  