From 17dbec838565c88df9a1eee912fe75b6e453ae1c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 18 Oct 2025 23:04:37 +0100 Subject: [PATCH] gnu: python-safety: Update to 3.6.2. * gnu/packages/python-xyz.scm (python-safety): Update to 3.6.2. [arguments] : Skip 4 more tests. : 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 ca090087e3e2d5c8373a723043adbae8513c43fb..5310415ac3c9880840c302c81a6e9ef4fcaf6ef5 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"))))))