gnu: r-reticulate: Build reproducibly.
* gnu/packages/cran.scm (r-reticulate)[arguments]: Add build phase 'build-reproducibly to ensure that pyc files are built reproducibly.
This commit is contained in:
		
							parent
							
								
									593327ef5b
								
							
						
					
					
						commit
						a5f199732b
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -9216,6 +9216,14 @@ always locate the files relative to your project root.")
 | 
			
		|||
        (base32
 | 
			
		||||
         "0b1szzsqyc8wcfpkn5517bb1ds064vs2hky71my3p74kfngay991"))))
 | 
			
		||||
    (build-system r-build-system)
 | 
			
		||||
    (arguments
 | 
			
		||||
     (list
 | 
			
		||||
      #:phases
 | 
			
		||||
      '(modify-phases %standard-phases
 | 
			
		||||
         (add-after 'unpack 'build-reproducibly
 | 
			
		||||
           (lambda _
 | 
			
		||||
             (setenv "PYTHONHASHSEED" "0")
 | 
			
		||||
             (setenv "PYTHONDONTWRITEBYTECODE" "1"))))))
 | 
			
		||||
    (inputs (list python))
 | 
			
		||||
    (propagated-inputs
 | 
			
		||||
     (list r-here
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue