guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 17dbec838565c88df9a1eee912fe75b6e453ae1c
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Oct 18 23:04:37 2025 +0100
gnu: python-safety: Update to 3.6.2.
* gnu/packages/python-xyz.scm (python-safety): Update to 3.6.2.
[arguments] <test-flags>: Skip 4 more tests.
<phases>: Add 'disable-telemetry.
Change-Id: Icd0acec1193fab8e197a281a046aa611da1bacb8
---
gnu/packages/python-xyz.scm | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ca090087e3..5310415ac3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -32827,13 +32827,13 @@ facility for filtering those results.")
(define-public python-safety
(package
(name "python-safety")
- (version "3.6.0")
+ (version "3.6.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "safety" version))
(sha256
- (base32 "1qzplv044yfr8w41h0qmjc8lj2admk029azsqbax70wzd4kzh858"))))
+ (base32 "1gijl0ip1fm1z91p05iqcngcpad3nnvpha0l5iykhbmdlkcqq51f"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -32844,9 +32844,22 @@ facility for filtering those results.")
;; Tests below need a network connection.
"test_check_live"
"test_check_live_cached"
- "test_get_packages_licenses_without_api_key")
+ "test_get_packages_licenses_without_api_key"
+ ;; AttributeError: 'PackageInstalledPayload' object
+ ;; has no attribute 'tool_path'
+ "test_emit_diff_operations_with_multiple_operations"
+ "test_emit_diff_operations_with_empty_locations"
+ "test_emit_diff_operations_with_different_tools"
+
"test_emit_diff_operations_creates_correct_payload_structure")
" and not "))
#:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-telemetry
+ (lambda _
+ (substitute* (find-files "." "\\.py$")
+ (("telemetry: bool = True")
+ "telemetry: bool = False")
+ (("telemetry=True")
+ "telemetry=False"))))
(add-before 'check 'set-home ; some tests run mkdir
(lambda _
(setenv "HOME" "/tmp"))))))