gnu: python-distlib: Don't reference the implicit bash input.
* gnu/packages/python-xyz.scm (python-distlib)[inputs]: Add BASH-MINIMAL. [arguments]: Use SEARCH-INPUT-FILE instead of WHICH.
This commit is contained in:
		
							parent
							
								
									c08b919b67
								
							
						
					
					
						commit
						a0aff95db9
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -8551,9 +8551,10 @@ and therefore easier to read and write.")
 | 
			
		|||
      #:phases
 | 
			
		||||
      #~(modify-phases %standard-phases
 | 
			
		||||
          (add-before 'build 'no-/bin/sh
 | 
			
		||||
            (lambda _
 | 
			
		||||
            (lambda* (#:key inputs #:allow-other-keys)
 | 
			
		||||
              (let ((/bin/sh (search-input-file inputs "bin/sh")))
 | 
			
		||||
                (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
 | 
			
		||||
                (("/bin/sh") (which "sh")))))
 | 
			
		||||
                  (("/bin/sh") /bin/sh)))))
 | 
			
		||||
          (add-before 'check 'prepare-test-environment
 | 
			
		||||
            (lambda _
 | 
			
		||||
              (setenv "HOME" "/tmp")
 | 
			
		||||
| 
						 | 
				
			
			@ -8561,6 +8562,8 @@ and therefore easier to read and write.")
 | 
			
		|||
              (setenv "SKIP_ONLINE" "1"))))))
 | 
			
		||||
    (native-inputs
 | 
			
		||||
     (list python-pytest))
 | 
			
		||||
    (inputs
 | 
			
		||||
     (list bash-minimal))
 | 
			
		||||
    (home-page "https://github.com/pypa/distlib")
 | 
			
		||||
    (synopsis "Distribution utilities")
 | 
			
		||||
    (description "Distlib is a library which implements low-level functions that
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue