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:
		
							parent
							
								
									3a2627b83c
								
							
						
					
					
						commit
						aa00797877
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -2704,6 +2704,12 @@ Songs can be searched by artist, name or even by a part of the song text.")
 | 
				
			||||||
           (lambda _
 | 
					           (lambda _
 | 
				
			||||||
             (setenv "HOME" (string-append (getcwd) "/tmp"))
 | 
					             (setenv "HOME" (string-append (getcwd) "/tmp"))
 | 
				
			||||||
             #t))
 | 
					             #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
 | 
					         (replace 'check
 | 
				
			||||||
           (lambda _
 | 
					           (lambda _
 | 
				
			||||||
             (invoke "nosetests" "-v"))))))
 | 
					             (invoke "nosetests" "-v"))))))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue