[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: beets: Make it compatible with Python 3.7.
From: |
guix-commits |
Subject: |
01/01: gnu: beets: Make it compatible with Python 3.7. |
Date: |
Wed, 5 Dec 2018 08:58:39 -0500 (EST) |
dannym pushed a commit to branch master
in repository guix.
commit aa00797877e972af9ec68194bde23b9e53f56fbb
Author: Danny Milosavljevic <address@hidden>
Date: Wed Dec 5 14:55:02 2018 +0100
gnu: beets: Make it compatible with Python 3.7.
* gnu/packages/music.scm (beets)[arguments]<#:phases>
[make-python3.7-compatible]: New phase.
---
gnu/packages/music.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index b59f258..2314fdc 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -2704,6 +2704,12 @@ Songs can be searched by artist, name or even by a part
of the song text.")
(lambda _
(setenv "HOME" (string-append (getcwd) "/tmp"))
#t))
+ (add-after 'unpack 'make-python3.7-compatible
+ (lambda _
+ ;; See <https://github.com/beetbox/beets/issues/2978>.
+ (substitute* "beets/autotag/hooks.py"
+ (("re\\._pattern_type") "re.Pattern"))
+ #t))
(replace 'check
(lambda _
(invoke "nosetests" "-v"))))))