gnu: python-bandit: Update to 1.6.2.
* gnu/packages/openstack.scm (python-bandit): Update to 1.6.2. [phases]: Remove argument. [tests?]: Disable test suite. [native-inputs]: Remove python-beautifulsoup4, python-fixtures, python-mock, python-subunit, python-testrepository, python-testscenarios and python-testtools. Add python-pbr.
This commit is contained in:
parent
21b78681f4
commit
a2ec24c65c
1 changed files with 6 additions and 20 deletions
|
@ -45,40 +45,26 @@
|
||||||
(define-public python-bandit
|
(define-public python-bandit
|
||||||
(package
|
(package
|
||||||
(name "python-bandit")
|
(name "python-bandit")
|
||||||
(version "1.4.0")
|
(version "1.6.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "bandit" version))
|
(uri (pypi-uri "bandit" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1m5bm42120zyazky4k0lp3d9r0jwhjmp6sb108xfr0vz952p15yb"))))
|
"0rb034c99pyhb4a60z7f2kz40cjydhm8m9v2blaal1rmhlam7rs1"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
;; The tests are disabled to avoid a circular dependency with
|
||||||
(delete 'check)
|
;; python-stestr.
|
||||||
(add-after 'install 'check
|
`(#:tests? #f))
|
||||||
(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-gitpython" ,python-gitpython)
|
`(("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
|
||||||
`(;; Tests.
|
`(("python-pbr" ,python-pbr)))
|
||||||
("python-beautifulsoup4" ,python-beautifulsoup4)
|
|
||||||
("python-fixtures" ,python-fixtures)
|
|
||||||
("python-mock" ,python-mock)
|
|
||||||
("python-subunit" ,python-subunit)
|
|
||||||
("python-testrepository" ,python-testrepository)
|
|
||||||
("python-testscenarios" ,python-testscenarios)
|
|
||||||
("python-testtools" ,python-testtools)))
|
|
||||||
(home-page "https://github.com/PyCQA/bandit")
|
(home-page "https://github.com/PyCQA/bandit")
|
||||||
(synopsis "Security oriented static analyser for python code")
|
(synopsis "Security oriented static analyser for python code")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue