gnu: python-bandit: Update to 1.4.0.
* gnu/packages/openstack.scm (python-bandit): Update to 1.4.0. [source](uri): Use PYPI-URI. [arguments]: Run CHECK-PHASE after INSTALL-PHASE. [propagated-inputs]: Remove PYTHON-APPDIRS. Add PYTHON-GITPYTHON. [native-inputs]: Remove PYTHON-PBR. Add PYTHON-BEAUTIFULSOUP4, PYTHON-OSLOTEST and PYTHON-SUBUNIT.
This commit is contained in:
		
							parent
							
								
									8e6177204e
								
							
						
					
					
						commit
						231bd07e8d
					
				
					 1 changed files with 18 additions and 8 deletions
				
			
		| 
						 | 
					@ -41,27 +41,37 @@
 | 
				
			||||||
(define-public python-bandit
 | 
					(define-public python-bandit
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
    (name "python-bandit")
 | 
					    (name "python-bandit")
 | 
				
			||||||
    (version "0.13.2")
 | 
					    (version "1.4.0")
 | 
				
			||||||
    (source
 | 
					    (source
 | 
				
			||||||
     (origin
 | 
					     (origin
 | 
				
			||||||
       (method url-fetch)
 | 
					       (method url-fetch)
 | 
				
			||||||
       (uri (string-append
 | 
					       (uri (pypi-uri "bandit" version))
 | 
				
			||||||
             "https://pypi.python.org/packages/source/b/bandit/bandit-"
 | 
					 | 
				
			||||||
             version ".tar.gz"))
 | 
					 | 
				
			||||||
       (sha256
 | 
					       (sha256
 | 
				
			||||||
        (base32
 | 
					        (base32
 | 
				
			||||||
         "03g3cflvrc99ncjd611iy5nnnscsc2vgnrx4mjaqyx8glbfw8y7g"))))
 | 
					         "1m5bm42120zyazky4k0lp3d9r0jwhjmp6sb108xfr0vz952p15yb"))))
 | 
				
			||||||
    (build-system python-build-system)
 | 
					    (build-system python-build-system)
 | 
				
			||||||
 | 
					    (arguments
 | 
				
			||||||
 | 
					     `(#:phases (modify-phases %standard-phases
 | 
				
			||||||
 | 
					                  (delete 'check)
 | 
				
			||||||
 | 
					                  (add-after 'install 'check
 | 
				
			||||||
 | 
					                    (lambda* (#:key inputs outputs #:allow-other-keys)
 | 
				
			||||||
 | 
					                      ;; Tests require the 'bandit' executable in PATH.
 | 
				
			||||||
 | 
					                      ;; It's only built during install time.
 | 
				
			||||||
 | 
					                      (add-installed-pythonpath inputs outputs)
 | 
				
			||||||
 | 
					                      (setenv "PATH" (string-append (assoc-ref outputs "out")
 | 
				
			||||||
 | 
					                                                    "/bin:" (getenv "PATH")))
 | 
				
			||||||
 | 
					                      (invoke "python" "setup.py" "testr"))))))
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
      `(("python-appdirs" ,python-appdirs)
 | 
					      `(("python-gitpython" ,python-gitpython)
 | 
				
			||||||
        ("python-pyyaml" ,python-pyyaml)
 | 
					        ("python-pyyaml" ,python-pyyaml)
 | 
				
			||||||
        ("python-six" ,python-six)
 | 
					        ("python-six" ,python-six)
 | 
				
			||||||
        ("python-stevedore" ,python-stevedore)))
 | 
					        ("python-stevedore" ,python-stevedore)))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
      `(("python-pbr" ,python-pbr)
 | 
					      `(;; Tests.
 | 
				
			||||||
        ;; Tests
 | 
					        ("python-beautifulsoup4" ,python-beautifulsoup4)
 | 
				
			||||||
        ("python-fixtures" ,python-fixtures)
 | 
					        ("python-fixtures" ,python-fixtures)
 | 
				
			||||||
        ("python-mock" ,python-mock)
 | 
					        ("python-mock" ,python-mock)
 | 
				
			||||||
 | 
					        ("python-subunit" ,python-subunit)
 | 
				
			||||||
        ("python-testrepository" ,python-testrepository)
 | 
					        ("python-testrepository" ,python-testrepository)
 | 
				
			||||||
        ("python-testscenarios" ,python-testscenarios)
 | 
					        ("python-testscenarios" ,python-testscenarios)
 | 
				
			||||||
        ("python-testtools" ,python-testtools)))
 | 
					        ("python-testtools" ,python-testtools)))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue