summaryrefslogtreecommitdiff
path: root/gnu/packages/openstack.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-04-23 21:27:56 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-04-23 23:12:23 +0100
commit3f3478bd615536510d2510d8174c04d948162300 (patch)
treee9c8120a35c0724c7b5305ed2029d56f3cf1d3ff /gnu/packages/openstack.scm
parent721aa8d2a7fce10f629315be4342b546187ab9a7 (diff)
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
Diffstat (limited to 'gnu/packages/openstack.scm')
-rw-r--r--gnu/packages/openstack.scm42
1 files changed, 31 insertions, 11 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index 6afef79409d..e1d93604dd2 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -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