gnu: beets: Make it compatible with Python 3.7.

* gnu/packages/music.scm (beets)[arguments]<#:phases>
[make-python3.7-compatible]: New phase.
This commit is contained in:
Danny Milosavljevic 2018-12-05 14:55:02 +01:00
parent 3a2627b83c
commit aa00797877
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 6 additions and 0 deletions

View File

@ -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"))))))