gnu: python2-setuptools: Patch source code.
* gnu/packages/python-xyz.scm (python2-setuptools)[arguments]: Add phase 'compatibility-fixes.
This commit is contained in:
		
							parent
							
								
									0b4300d4fd
								
							
						
					
					
						commit
						75ca0e5258
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1863,7 +1863,17 @@ Python 3 support.")
 | 
			
		|||
    ;; FIXME: Tests require pytest, which itself relies on setuptools.
 | 
			
		||||
    ;; One could bootstrap with an internal untested setuptools.
 | 
			
		||||
    (arguments
 | 
			
		||||
     `(#:tests? #f))
 | 
			
		||||
     `(#:tests? #f
 | 
			
		||||
       #:phases
 | 
			
		||||
       (modify-phases %standard-phases
 | 
			
		||||
         (add-after 'unpack 'compatibility-fixes
 | 
			
		||||
           (lambda _
 | 
			
		||||
             ;; HTMLParser no longer exists.
 | 
			
		||||
             (substitute* "setuptools/py33compat.py"
 | 
			
		||||
               (("html_parser.HTMLParser\\(\\).unescape")
 | 
			
		||||
                "html.unescape"))
 | 
			
		||||
             ;; This needs distutils.msvc9compiler
 | 
			
		||||
             (delete-file "setuptools/tests/test_msvc.py"))))))
 | 
			
		||||
    (native-inputs
 | 
			
		||||
     (list unzip))
 | 
			
		||||
    (home-page "https://pypi.org/project/setuptools/")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue