gnu: s3cmd: Fix program name in output.
* gnu/packages/python-xyz.scm (s3cmd)[arguments]: Add a new 'hide-wrapping phase. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
		
							parent
							
								
									fc2b952205
								
							
						
					
					
						commit
						856b67f302
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
					@ -16395,6 +16395,15 @@ the same purpose: to provide Python bindings for libmagic.")
 | 
				
			||||||
       (sha256
 | 
					       (sha256
 | 
				
			||||||
        (base32 "0rdgwwmmp8mdxc84bxq6k9a7v7z2qgc3df47djzs2b84gw81dglx"))))
 | 
					        (base32 "0rdgwwmmp8mdxc84bxq6k9a7v7z2qgc3df47djzs2b84gw81dglx"))))
 | 
				
			||||||
    (build-system python-build-system)
 | 
					    (build-system python-build-system)
 | 
				
			||||||
 | 
					    (arguments
 | 
				
			||||||
 | 
					     (list #:phases
 | 
				
			||||||
 | 
					           #~(modify-phases %standard-phases
 | 
				
			||||||
 | 
					               (add-after 'unpack 'hide-wrapping
 | 
				
			||||||
 | 
					                 (lambda _
 | 
				
			||||||
 | 
					                   (substitute* "S3/MultiPart.py"
 | 
				
			||||||
 | 
					                     (("sys\\.argv\\[0\\]") "\"s3cmd\""))
 | 
				
			||||||
 | 
					                   (substitute* "s3cmd"
 | 
				
			||||||
 | 
					                     (("optparser\\.get_prog_name\\(\\)") "\"s3cmd\"")))))))
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     (list python-dateutil
 | 
					     (list python-dateutil
 | 
				
			||||||
           python-magic))
 | 
					           python-magic))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue