guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/14: gnu: python-bandit: Update to 1.6.2.


From: guix-commits
Subject: 05/14: gnu: python-bandit: Update to 1.6.2.
Date: Fri, 20 Nov 2020 00:25:33 -0500 (EST)

apteryx pushed a commit to branch master
in repository guix.

commit a2ec24c65cbfae9e65699c7962b3b8d62b7cd3c6
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Nov 18 15:32:56 2020 -0500

    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.
---
 gnu/packages/openstack.scm | 26 ++++++--------------------
 1 file changed, 6 insertions(+), 20 deletions(-)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index e0c0bc3..1c1fe66 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -45,40 +45,26 @@
 (define-public python-bandit
   (package
     (name "python-bandit")
-    (version "1.4.0")
+    (version "1.6.2")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "bandit" version))
        (sha256
         (base32
-         "1m5bm42120zyazky4k0lp3d9r0jwhjmp6sb108xfr0vz952p15yb"))))
+         "0rb034c99pyhb4a60z7f2kz40cjydhm8m9v2blaal1rmhlam7rs1"))))
     (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"))))))
+     ;; The tests are disabled to avoid a circular dependency with
+     ;; python-stestr.
+     `(#:tests? #f))
     (propagated-inputs
       `(("python-gitpython" ,python-gitpython)
         ("python-pyyaml" ,python-pyyaml)
         ("python-six" ,python-six)
         ("python-stevedore" ,python-stevedore)))
     (native-inputs
-      `(;; 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)))
+      `(("python-pbr" ,python-pbr)))
     (home-page "https://github.com/PyCQA/bandit";)
     (synopsis "Security oriented static analyser for python code")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]