~ruther/guix-local

3f3478bd615536510d2510d8174c04d948162300 — Sharlatan Hellseher 1 year, 3 months ago 721aa8d
gnu: python-bandit: Enable tests.

* gnu/packages/openstack.scm (python-bandit): Update to 1.8.3.
[arguments] <phases>: Use custom 'check.
[propagated-inputs]: Add python-gitpython, python-jschema-to-python, and
python-sarif-om.  [native-inputs]: Add python-fixtures, python-stestr,
python-testscenarios, and python-testtools.

Change-Id: I0cc1b30635045e3161d14372dca24aa844050652
1 files changed, 31 insertions(+), 11 deletions(-)

M gnu/packages/openstack.scm
M gnu/packages/openstack.scm => gnu/packages/openstack.scm +31 -11
@@ 64,19 64,39 @@
        (base32 "0fhr0rsvh44ix31dwxjw8aj0wklj95368djwk0i98c2dcpmpp17m"))))
    (build-system pyproject-build-system)
    (arguments
     ;; The tests are disabled to avoid a circular dependency with
     ;; python-stestr.
     `(#:tests? #f))
    (propagated-inputs (list python-pyyaml python-rich python-stevedore))
    (native-inputs (list python-beautifulsoup4
                         python-setuptools
                         python-wheel))
     (list
      #:test-flags
      ;; Two tets fail.
      #~(list "--exclude-regex" "test_no_arguments|test_help_arg")
      #:phases
      #~(modify-phases %standard-phases
          ;; TODO: Implement in pypproject-build-system's  test-backends.
          (replace 'check
            (lambda* (#:key tests? test-flags #:allow-other-keys)
              (when tests?
                (apply invoke "stestr" "run" test-flags)))))))
    (native-inputs
     (list python-beautifulsoup4
           python-fixtures
           python-setuptools
           python-stestr
           python-testscenarios
           python-testtools
           python-wheel))
    (propagated-inputs
     (list python-gitpython
           python-jschema-to-python
           python-pyyaml
           python-rich
           python-sarif-om
           python-stevedore))
    (home-page "https://github.com/PyCQA/bandit")
    (synopsis "Security oriented static analyser for python code")
    (description "Bandit is a tool designed to find common security issues in
Python code.  To do this Bandit processes each file, builds an AST from it,
and runs appropriate plugins against the AST nodes.  Once Bandit has finished
scanning all the files it generates a report.")
    (description
     "Bandit is a tool designed to find common security issues in Python code.
To do this Bandit processes each file, builds an AST from it, and runs
appropriate plugins against the AST nodes.  Once Bandit has finished scanning
all the files it generates a report.")
    (license asl2.0)))

(define-public python-cliff