aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/openstack.scm
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-02-28 03:11:43 +0100
committerMarius Bakke <mbakke@fastmail.com>2018-02-28 13:59:01 +0100
commit231bd07e8d4b0a7cb68e2db4ed6893add759d9c6 (patch)
tree8f7ee096e53dc176acfa62b2fc4d639a088623f8 /gnu/packages/openstack.scm
parent8e6177204e9f3cb5ff2651153a7388796ebccbb8 (diff)
downloadguix-231bd07e8d4b0a7cb68e2db4ed6893add759d9c6.tar
guix-231bd07e8d4b0a7cb68e2db4ed6893add759d9c6.tar.gz
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.
Diffstat (limited to 'gnu/packages/openstack.scm')
-rw-r--r--gnu/packages/openstack.scm26
1 files changed, 18 insertions, 8 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index be858e17c3..efb305ea04 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -41,27 +41,37 @@
(define-public python-bandit
(package
(name "python-bandit")
- (version "0.13.2")
+ (version "1.4.0")
(source
(origin
(method url-fetch)
- (uri (string-append
- "https://pypi.python.org/packages/source/b/bandit/bandit-"
- version ".tar.gz"))
+ (uri (pypi-uri "bandit" version))
(sha256
(base32
- "03g3cflvrc99ncjd611iy5nnnscsc2vgnrx4mjaqyx8glbfw8y7g"))))
+ "1m5bm42120zyazky4k0lp3d9r0jwhjmp6sb108xfr0vz952p15yb"))))
(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
- `(("python-appdirs" ,python-appdirs)
+ `(("python-gitpython" ,python-gitpython)
("python-pyyaml" ,python-pyyaml)
("python-six" ,python-six)
("python-stevedore" ,python-stevedore)))
(native-inputs
- `(("python-pbr" ,python-pbr)
- ;; Tests
+ `(;; Tests.
+ ("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)))