anchor.diff:  , fetchFromGitHub
   , fetchTritonPatch
   , glibcLocales
  +, isPy3k
   , makeWrapper
  +, pythonPackages
   , writeScript
   
   , bash
   , bashCompletion
  +, beautifulsoup
   , bs1770gain
  +, discogs-client
  +, enum34
   , flac
  +, flask
   , imagemagick
  +, itsdangerous
  +, jellyfish
  +, jinja2
  +, mock
   , mp3val
  -, pythonPackages
  +, mpd
  +, munkres
  +, musicbrainzngs
  +, mutagen
  +, nose
  +, pathlib
  +, pyacoustid
  +, pyechonest
  +, pylast
  +, pyxdg
  +, pyyaml
  +, rarfile
  +, requests
  +, responses
  +, unidecode
  +, werkzeug
   
   # External plugins
   , enableAlternatives ? true
  
positive.code: 
  buildPythonPackage rec {
    name = "beets-${version}";
    version = "1.3.17";
    namePrefix = "";
  
    src = fetchFromGitHub {
      owner = "sampsyo";
      repo = "beets";
      rev = "v${version}";
      sha256 = "8b8c74478277e6b010cc1319c1e9b6fe97e1a8967bede341ebeabc205b7cc0f3";
    };
  
    nativeBuildInputs = [
  
negative.code:       else
          false;
      bpd =
        #if pygobject_2 != null
        #   && gst-plugins-base_0 != null
        #   && gstreamer_0 != null then
        #  true
        #else
          false;
      chroma =
        if pyacoustid != null then
          true
        else
          false;
      discogs =
        if discogs-client != null then
          true
        else
          false;
      /*echonest =
        if pyechonest != null then
          true
        else
          false;*/
      embyupdate =
        if requests != null then
          true
        else
          false;
      fetchart =
        if requests != null then
          true
        else
          false;
      lastgenre =
        if pylast != null then
          true
        else
          false;
      lastimport =
        if pylast != null then
          true
        else
          false;
      mpdstats =
        if mpd != null then
          true
        else
          false;
      mpdupdate =
        if mpd != null then
          true
        else
          false;
  