[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51396] [PATCH 3/7] gnu: python-cfn-lint: Respect #:tests?.
From: |
Vinicius Monego |
Subject: |
[bug#51396] [PATCH 3/7] gnu: python-cfn-lint: Respect #:tests?. |
Date: |
Mon, 25 Oct 2021 19:50:01 +0000 |
* gnu/packages/python-web.scm (python-cfn-lint)[arguments]: Make some cosmetic
changes. Respect #:tests? in the custom 'check phase and simplify it.
---
gnu/packages/python-web.scm | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index af6443795e..451a6d3652 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -491,23 +491,23 @@ emit information from within their applications to the
AWS X-Ray service.")
"106qf19n2k6sdjkb4006aidibd24qqiw901c1613xgjpnyw4dyl6"))))
(build-system python-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- ;; Remove test for the documentation update scripts
- ;; to avoid a dependency on 'git'.
- (delete-file
-
"test/unit/module/maintenance/test_update_documentation.py")
- (delete-file
-
"test/unit/module/maintenance/test_update_resource_specs.py")
- (setenv "PYTHONPATH"
- (string-append "./build/lib:"
- (getenv "PYTHONPATH")))
- (setenv "PATH" (string-append out "/bin:"
- (getenv "PATH")))
- (invoke "python" "-m" "unittest" "discover" "-v"
- "-s" "test")))))))
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (let ((out (assoc-ref outputs "out")))
+ ;; Remove test for the documentation update scripts
+ ;; to avoid a dependency on 'git'.
+ (delete-file
+ "test/unit/module/maintenance/test_update_documentation.py")
+ (delete-file
+ "test/unit/module/maintenance/test_update_resource_specs.py")
+ (add-installed-pythonpath inputs outputs)
+ (setenv "PATH" (string-append out "/bin:"
+ (getenv "PATH")))
+ (invoke "python" "-m" "unittest" "discover"
+ "-s" "test"))))))))
(native-inputs
`(("python-pydot" ,python-pydot)
("python-mock" ,python-mock)))
--
2.30.2
- [bug#51396] [PATCH 0/7] Update python-moto., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 1/7] gnu: python-aws-sam-translator: Update to 1.39.0., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 5/7] gnu: Update awscli, python-boto3 and python-botocore., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 4/7] gnu: python-s3transfer: Update to 0.5.0., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 2/7] gnu: python-cfn-lint: Update to 0.54.3., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 3/7] gnu: python-cfn-lint: Respect #:tests?.,
Vinicius Monego <=
- [bug#51396] [PATCH 6/7] gnu: python-moto: Update to 2.2.11., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 7/7] gnu: python-moto: Respect #:tests?., Vinicius Monego, 2021/10/25