@ -3,8 +3,8 @@
, runtimeShell
, unstableGitUpdater
# Attributes needed for tests of the external plugins
, callPackage , beet s
# external plugins package set
, beetsExternalPlugin s
, enableAbsubmit ? lib . elem stdenv . hostPlatform . system essentia-extractor . meta . platforms , essentia-extractor ? null
, enableAcousticbrainz ? true
@ -116,15 +116,6 @@ let
doInstallCheck = false ;
} ) ;
pluginArgs = externalTestArgs // { inherit pythonPackages ; } ;
plugins = {
alternatives = callPackage ./plugins/alternatives.nix pluginArgs ;
check = callPackage ./plugins/check.nix pluginArgs ;
copyartifacts = callPackage ./plugins/copyartifacts.nix pluginArgs ;
extrafiles = callPackage ./plugins/extrafiles.nix pluginArgs ;
} ;
in pythonPackages . buildPythonApplication rec {
pname = " b e e t s " ;
# While there is a stable version, 1.4.9, it is more than 1000 commits behind
@ -169,7 +160,7 @@ in pythonPackages.buildPythonApplication rec {
|| enableSubsonicupdate
|| enableAcousticbrainz )
pythonPackages . requests
++ optional enableCheck p lugins. check
++ optional enableCheck beetsExternalP lugins. check
++ optional enableConvert ffmpeg
++ optional enableDiscogs pythonPackages . discogs_client
++ optional enableGmusic pythonPackages . gmusicapi
@ -179,9 +170,9 @@ in pythonPackages.buildPythonApplication rec {
++ optional enableSonosUpdate pythonPackages . soco
++ optional enableThumbnails pythonPackages . pyxdg
++ optional enableWeb pythonPackages . flask
++ optional enableAlternatives p lugins. alternatives
++ optional enableCopyArtifacts p lugins. copyartifacts
++ optional enableExtraFiles p lugins. extrafiles
++ optional enableAlternatives beetsExternalP lugins. alternatives
++ optional enableCopyArtifacts beetsExternalP lugins. copyartifacts
++ optional enableExtraFiles beetsExternalP lugins. extrafiles
;
buildInputs = [
@ -289,7 +280,8 @@ in pythonPackages.buildPythonApplication rec {
makeWrapperArgs = [ " - - s e t G I _ T Y P E L I B _ P A T H \" $ G I _ T Y P E L I B _ P A T H \" " " - - s e t G S T _ P L U G I N _ S Y S T E M _ P A T H _ 1 _ 0 \" $ G S T _ P L U G I N _ S Y S T E M _ P A T H _ 1 _ 0 \" " ] ;
passthru = {
externalPlugins = plugins ;
# FIXME: remove in favor of pkgs.beetsExternalPlugins
externalPlugins = beetsExternalPlugins ;
updateScript = unstableGitUpdater { url = " h t t p s : / / g i t h u b . c o m / b e e t b o x / b e e t s " ; } ;
} ;