anchor.diff:      python.modules.readline
     ] ++ optional enableAcoustid     pythonPackages.pyacoustid
       ++ optional (enableFetchart
  -              || enableEmbyupdate) pythonPackages.requests2
  +              || enableEmbyupdate
  +              || enableAcousticbrainz)
  +                                   pythonPackages.requests2
       ++ optional enableDiscogs      pythonPackages.discogs_client
       ++ optional enableEchonest     pythonPackages.pyechonest
       ++ optional enableLastfm       pythonPackages.pylast
  
positive.code: { stdenv, fetchFromGitHub, writeScript, glibcLocales
  , buildPythonPackage, pythonPackages, python, imagemagick
  
  , enableAcoustid   ? true
  , enableBadfiles   ? true, flac ? null, mp3val ? null
  , enableDiscogs    ? true
  , enableEchonest   ? true
  , enableEmbyupdate ? true
  , enableFetchart   ? true
  , enableLastfm     ? true
  , enableMpd        ? true
  , enableReplaygain ? true, bs1770gain ? null
  , enableThumbnails ? true
  , enableWeb        ? true
  
  # External plugins
  , enableAlternatives ? false
  
negative.code: 
  in buildPythonPackage rec {
    name = "beets-${version}";
    version = "1.3.17";
    namePrefix = "";
  
    src = fetchFromGitHub {
      owner = "sampsyo";
      repo = "beets";
      rev = "v${version}";
      sha256 = "1fskxx5xxjqf4xmfjrinh7idjiq6qncb24hiyccv09l47fr1yipc";
    };
  
    propagatedBuildInputs = [
  