forked from mirrors/nixpkgs
Merge pull request #12899: beets: 1.3.16 -> 1.3.17
This contains the update from @Profpatsch and a small fix by me to re-enable the test suite. The upstream changelog can be found at: http://beets.readthedocs.org/en/v1.3.17/changelog.html
This commit is contained in:
commit
0afbe4c4d4
|
@ -1,17 +1,18 @@
|
|||
{ 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
|
||||
, enableAcousticbrainz ? true
|
||||
, 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
|
||||
|
@ -34,6 +35,7 @@ with stdenv.lib;
|
|||
|
||||
let
|
||||
optionalPlugins = {
|
||||
acousticbrainz = enableAcousticbrainz;
|
||||
badfiles = enableBadfiles;
|
||||
chroma = enableAcoustid;
|
||||
discogs = enableDiscogs;
|
||||
|
@ -68,14 +70,14 @@ let
|
|||
|
||||
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";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -91,7 +93,9 @@ in buildPythonPackage rec {
|
|||
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
|
||||
|
@ -117,7 +121,7 @@ in buildPythonPackage rec {
|
|||
|
||||
postPatch = ''
|
||||
sed -i -e '/assertIn.*item.*path/d' test/test_info.py
|
||||
echo echo completion tests passed > test/test_completion.sh
|
||||
echo echo completion tests passed > test/rsrc/test_completion.sh
|
||||
|
||||
sed -i -e '/^BASH_COMPLETION_PATHS *=/,/^])$/ {
|
||||
/^])$/i u"${completion}"
|
||||
|
|
Loading…
Reference in a new issue