From aa00797877e972af9ec68194bde23b9e53f56fbb Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Wed, 5 Dec 2018 14:55:02 +0100 Subject: 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(+) (limited to 'gnu') diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index b59f258ae5..2314fdc442 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 . + (substitute* "beets/autotag/hooks.py" + (("re\\._pattern_type") "re.Pattern")) + #t)) (replace 'check (lambda _ (invoke "nosetests" "-v")))))) -- cgit 1.4.1