GNU bug report logs -
#77979
[PATCH] gnu: beets: Update to 2.2.0.
Previous Next
To reply to this bug, email your comments to 77979 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#77979
; Package
guix-patches
.
(Tue, 22 Apr 2025 04:27:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andrew Wong <wongandj <at> icloud.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 22 Apr 2025 04:27:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/music.scm (beets): Update to 2.2.0.
[source]: Add `beets-future-proof-bucket-test.patch` patch.
[native-inputs]: Add `python-poetry-core`, `python-pytest-flask`.
[inputs]: Add `python-platformdirs`.
* gnu/packages/patches/beets-future-proof-bucket-test.patch: New file.
Change-Id: I57e58d8fd7117a93f2b17e1a155871e963d2a881
---
gnu/packages/music.scm | 15 ++++---
.../beets-future-proof-bucket-test.patch | 39 +++++++++++++++++++
2 files changed, 49 insertions(+), 5 deletions(-)
create mode 100644 gnu/packages/patches/beets-future-proof-bucket-test.patch
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 0759c3d3c1..c80b457657 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -4280,13 +4280,15 @@ (define-public instantmusic
(define-public beets
(package
(name "beets")
- (version "2.0.0")
+ (version "2.2.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "beets" version))
(sha256
(base32
- "1kzqn6f3iw30lav9cwf653w2ns1n09yrys54dqxf6a9ppjsp449v"))))
+ "05f7sjl6hwarn4d3r5hlsn7gfsx1dlqiy0kl6dg5fi08adzjf2nc"))
+ ;; Fix myopic test. See <https://github.com/beetbox/beets/pull/5566>
+ (patches (search-patches "beets-future-proof-bucket-test.patch"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -4309,9 +4311,11 @@ (define-public beets
(list gobject-introspection
python-flask
python-mock
+ python-poetry-core
python-py7zr
python-pytest
python-pytest-cov
+ python-pytest-flask
python-setuptools
python-responses
python-wheel))
@@ -4325,6 +4329,7 @@ (define-public beets
python-mediafile
python-munkres
python-musicbrainzngs
+ python-platformdirs
python-pyyaml
python-typing-extensions
python-unidecode
@@ -5116,13 +5121,13 @@ (define-public seq24
(define-public python-discogs-client
(package
(name "python-discogs-client")
- (version "2.3.12")
+ (version "2.8")
(source (origin
(method url-fetch)
- (uri (pypi-uri "python3-discogs-client" version))
+ (uri (pypi-uri "python3_discogs_client" version))
(sha256
(base32
- "1zmib0i9jicv9fyphgkcrk418qmpv3l4p38ibl31sh237ki5xqw9"))))
+ "0fxk8q8z5v5l961d9z2ywq49i2fz50h074p81zv6w6j9zzs7fb0g"))))
(build-system python-build-system)
(propagated-inputs
(list python-dateutil python-oauthlib python-requests))
diff --git a/gnu/packages/patches/beets-future-proof-bucket-test.patch b/gnu/packages/patches/beets-future-proof-bucket-test.patch
new file mode 100644
index 0000000000..48a640d802
--- /dev/null
+++ b/gnu/packages/patches/beets-future-proof-bucket-test.patch
@@ -0,0 +1,39 @@
+From bcc79a5b09225050ce7c88f63dfa56f49f8782a8 Mon Sep 17 00:00:00 2001
+From: Stefano Rivera <stefano <at> rivera.za.net>
+Date: Fri, 27 Dec 2024 16:27:30 -0400
+Subject: [PATCH] Future proof
+ BucketPluginTest.test_year_single_year_last_folder
+
+2025 won't be in the future, forever.
+
+Fixes: https://bugs.debian.org/1091495
+---
+ test/plugins/test_bucket.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/test/plugins/test_bucket.py b/test/plugins/test_bucket.py
+index b075bc4f2..e3611912a 100644
+--- a/test/plugins/test_bucket.py
++++ b/test/plugins/test_bucket.py
+@@ -14,6 +14,8 @@
+
+ """Tests for the 'bucket' plugin."""
+
++from datetime import datetime
++
+ import pytest
+
+ from beets import config, ui
+@@ -51,7 +53,8 @@ class BucketPluginTest(BeetsTestCase):
+ year."""
+ self._setup_config(bucket_year=["1950", "1970"])
+ assert self.plugin._tmpl_bucket("2014") == "1970"
+- assert self.plugin._tmpl_bucket("2025") == "2025"
++ next_year = datetime.now().year + 1
++ assert self.plugin._tmpl_bucket(str(next_year)) == str(next_year)
+
+ def test_year_two_years(self):
+ """Buckets can be named with the 'from-to' syntax."""
+--
+2.49.0
+
base-commit: f7c41ab31f5023023385500f6eb9083d23dd1ccb
--
2.49.0
This bug report was last modified 2 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.