summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-08-06 12:23:02 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-08-06 13:42:57 +0100
commit69aba80f8996fa41ab1055ca7794c20415c7d131 (patch)
tree7b7d7ae0713e56694be1d7cd978fb61652386638 /gnu
parent1fcdb6680b7b03da256ed527a9970f91c69f672b (diff)
gnu: python-safety: Update to 3.8.1.
* gnu/packages/python-xyz.scm (python-safety): Update to 3.8.1. [source]: Switch to git-fetch. {patches}: Add a fixing patch for network issues. [arguments]{test-flags}: Drop them. {phases}: Improve style. [propagated-inputs]: Add python-certifi, python-truststore. Remove python-psutil, python-requests, python-ruamel.yaml. Replace python-typer-without-click by python-typer. Merges: guix/guix!10393 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm69
1 files changed, 35 insertions, 34 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2b350bb4d01..38a3668eb3d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -32098,44 +32098,44 @@ facility for filtering those results.")
32098(define-public python-safety 32098(define-public python-safety
32099 (package 32099 (package
32100 (name "python-safety") 32100 (name "python-safety")
32101 (version "3.6.2") 32101 (version "3.8.1")
32102 (source 32102 (source
32103 (origin 32103 (origin
32104 (method url-fetch) 32104 (method git-fetch)
32105 (uri (pypi-uri "safety" version)) 32105 (uri (git-reference
32106 (url "https://github.com/pyupio/safety")
32107 (commit version)))
32108 (file-name (git-file-name name version))
32106 (sha256 32109 (sha256
32107 (base32 "1gijl0ip1fm1z91p05iqcngcpad3nnvpha0l5iykhbmdlkcqq51f")))) 32110 (base32 "00i0jgv89kwbp130ykrfp2754k06agqs9sflsjpafcrf3jx7r9n4"))
32111 (patches
32112 (list
32113 (origin
32114 (method url-fetch)
32115 (uri (string-append
32116 "https://github.com/pyupio/safety/commit/"
32117 "145a3956007a01e57a8e05d111633c2309ad3374.patch"))
32118 (sha256
32119 (base32
32120 "00bsqhbvvpiycdz01vvxkp02i10rn3h5xaffib20h8yxnvx2xjbj")))))))
32108 (build-system pyproject-build-system) 32121 (build-system pyproject-build-system)
32109 (arguments 32122 (arguments
32110 (list 32123 (list
32111 #:test-flags 32124 #:phases
32112 #~(list "-k" (string-join 32125 #~(modify-phases %standard-phases
32113 ;; test_announcements fails with AssertionError. 32126 (add-after 'unpack 'disable-telemetry
32114 (list "not test_announcements_if_is_not_tty" 32127 (lambda _
32115 ;; Tests below need a network connection. 32128 (substitute* (find-files "." "\\.py$")
32116 "test_check_live" 32129 (("telemetry: bool = True")
32117 "test_check_live_cached" 32130 "telemetry: bool = False")
32118 "test_get_packages_licenses_without_api_key" 32131 (("telemetry=True")
32119 ;; AttributeError: 'PackageInstalledPayload' object 32132 "telemetry=False"))))
32120 ;; has no attribute 'tool_path' 32133 (add-before 'check 'set-home ; some tests run mkdir
32121 "test_emit_diff_operations_with_multiple_operations" 32134 (lambda _
32122 "test_emit_diff_operations_with_empty_locations" 32135 (setenv "HOME" "/tmp"))))))
32123 "test_emit_diff_operations_with_different_tools"
32124 "test_emit_diff_operations_creates_correct_payload_structure")
32125 " and not "))
32126 #:phases #~(modify-phases %standard-phases
32127 (add-after 'unpack 'disable-telemetry
32128 (lambda _
32129 (substitute* (find-files "." "\\.py$")
32130 (("telemetry: bool = True")
32131 "telemetry: bool = False")
32132 (("telemetry=True")
32133 "telemetry=False"))))
32134 (add-before 'check 'set-home ; some tests run mkdir
32135 (lambda _
32136 (setenv "HOME" "/tmp"))))))
32137 (native-inputs (list nss-certs-for-test python-hatchling python-pytest)) 32136 (native-inputs (list nss-certs-for-test python-hatchling python-pytest))
32138 (propagated-inputs (list python-authlib 32137 (propagated-inputs (list python-authlib
32138 python-certifi
32139 python-click 32139 python-click
32140 python-dparse 32140 python-dparse
32141 python-filelock 32141 python-filelock
@@ -32144,15 +32144,16 @@ facility for filtering those results.")
32144 python-marshmallow 32144 python-marshmallow
32145 python-nltk 32145 python-nltk
32146 python-packaging 32146 python-packaging
32147 python-psutil
32148 python-pydantic 32147 python-pydantic
32149 python-requests
32150 python-ruamel.yaml
32151 python-safety-schemas 32148 python-safety-schemas
32152 python-tenacity 32149 python-tenacity
32153 python-tomli 32150 python-tomli
32154 python-tomlkit 32151 python-tomlkit
32155 python-typer 32152 python-truststore
32153 ;; XXX: python-safety subclasses click.Context
32154 ;; in a way that assumes Typer still delegates
32155 ;; to the standalone python-click package.
32156 python-typer-without-click
32156 python-typing-extensions)) 32157 python-typing-extensions))
32157 (home-page "https://github.com/pyupio/safety") 32158 (home-page "https://github.com/pyupio/safety")
32158 (synopsis "Check installed dependencies for known vulnerabilities") 32159 (synopsis "Check installed dependencies for known vulnerabilities")