beets: fix absubmit deps (#73608)

beets: fix absubmit deps
This commit is contained in:
Silvan Mosberger 2019-11-23 00:46:36 +01:00 committed by GitHub
commit 9d3911f806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 7 deletions

View File

@ -6,6 +6,7 @@
# Attributes needed for tests of the external plugins # Attributes needed for tests of the external plugins
, callPackage, beets , callPackage, beets
, enableAbsubmit ? stdenv.lib.elem stdenv.hostPlatform.system essentia-extractor.meta.platforms, essentia-extractor ? null
, enableAcousticbrainz ? true , enableAcousticbrainz ? true
, enableAcoustid ? true , enableAcoustid ? true
, enableBadfiles ? true, flac ? null, mp3val ? null , enableBadfiles ? true, flac ? null, mp3val ? null
@ -33,6 +34,7 @@
, bashInteractive, bash-completion , bashInteractive, bash-completion
}: }:
assert enableAbsubmit -> essentia-extractor != null;
assert enableAcoustid -> pythonPackages.pyacoustid != null; assert enableAcoustid -> pythonPackages.pyacoustid != null;
assert enableBadfiles -> flac != null && mp3val != null; assert enableBadfiles -> flac != null && mp3val != null;
assert enableConvert -> ffmpeg != null; assert enableConvert -> ffmpeg != null;
@ -51,6 +53,7 @@ with stdenv.lib;
let let
optionalPlugins = { optionalPlugins = {
absubmit = enableAbsubmit;
acousticbrainz = enableAcousticbrainz; acousticbrainz = enableAcousticbrainz;
badfiles = enableBadfiles; badfiles = enableBadfiles;
chroma = enableAcoustid; chroma = enableAcoustid;
@ -75,12 +78,12 @@ let
}; };
pluginsWithoutDeps = [ pluginsWithoutDeps = [
"absubmit" "beatport" "bench" "bpd" "bpm" "bucket" "cue" "duplicates" "beatport" "bench" "bpd" "bpm" "bucket" "cue" "duplicates" "edit" "embedart"
"edit" "embedart" "export" "filefilter" "freedesktop" "fromfilename" "export" "filefilter" "freedesktop" "fromfilename" "ftintitle" "fuzzy"
"ftintitle" "fuzzy" "hook" "ihate" "importadded" "importfeeds" "info" "hook" "ihate" "importadded" "importfeeds" "info" "inline" "ipfs" "lyrics"
"inline" "ipfs" "lyrics" "mbcollection" "mbsubmit" "mbsync" "metasync" "mbcollection" "mbsubmit" "mbsync" "metasync" "missing" "permissions" "play"
"missing" "permissions" "play" "plexupdate" "random" "rewrite" "scrub" "plexupdate" "random" "rewrite" "scrub" "smartplaylist" "spotify" "the"
"smartplaylist" "spotify" "the" "types" "zero" "types" "zero"
]; ];
enabledOptionalPlugins = attrNames (filterAttrs (_: id) optionalPlugins); enabledOptionalPlugins = attrNames (filterAttrs (_: id) optionalPlugins);
@ -129,7 +132,8 @@ in pythonPackages.buildPythonApplication rec {
pythonPackages.gst-python pythonPackages.gst-python
pythonPackages.pygobject3 pythonPackages.pygobject3
gobject-introspection gobject-introspection
] ++ optional enableAcoustid pythonPackages.pyacoustid ] ++ optional enableAbsubmit essentia-extractor
++ optional enableAcoustid pythonPackages.pyacoustid
++ optional (enableFetchart ++ optional (enableFetchart
|| enableEmbyupdate || enableEmbyupdate
|| enableKodiupdate || enableKodiupdate