summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-11-04 10:46:49 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-04 12:05:53 +0000
commit42df16cf78b21a4206465d08829bbac8de1dd286 (patch)
treec0510c4e8ed566e0c0a6570391744ddd4f8368ad /gnu
parentbf316e14e7565cd862a5912c0a178083a2c42796 (diff)
gnu: Add python-conda-content-trust.
* gnu/packages/python-xyz.scm (python-conda-content-trust): New variable. Change-Id: Icaca13dccb6cf161e2cf9ea1ed785c616f4dc22d
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm55
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index dc6cf80cb6c..f1544c2d95b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -660,6 +660,61 @@ templates language.")
(license (list license:zpl2.1
license:psfl))))
+(define-public python-conda-content-trust
+ (package
+ (name "python-conda-content-trust")
+ (version "0.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/conda/conda-content-trust")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1yvfwm7i18sfvgdasibdgnghvj5w5p4hr6i37v0cspwmkczgna7z"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; XXX: Not packaged yet:
+ ;; <https://github.com/secure-systems-lab/securesystemslib>.
+ ;;
+ ;; ImportError: The securesystemslib library is required, which appears
+ ;; to be unavailable.
+ #~(list #$@(map (lambda (test) (string-append "--deselect="
+ "tests/test_root.py::"
+ test))
+ (list "test_sign_root_metadata_dict_via_gpg"
+ "test_sign_root_metadata_via_gpg"
+ "test_gpg_pubkey_in_ssl_format")))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-pytest-config
+ (lambda _
+ (substitute* "setup.cfg"
+ (("--cov.*") ""))))
+ (add-before 'build 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+ (native-inputs
+ (list python-hatch-vcs
+ python-hatchling
+ python-pytest))
+ (propagated-inputs
+ (list python-cryptography))
+ (home-page "https://github.com/conda/conda-content-trust")
+ (synopsis "Signing and verification tools for Conda")
+ (description
+ "This package implements a functionalit of signing and verification tools
+for Conda. @url{https://theupdateframework.io/, Based on The Update
+Framework (TUF)}, conda-content-trust is intended to ensure that when users in
+the conda ecosystem obtain a package or data about that package, they can know
+whether or not it is trustworthy (e.g. originally comes from a reliable source
+and has not been tampered with). A basic library and basic CLI are included
+to provide signing, verification, and trust delegation functionality.")
+ (license license:bsd-3)))
+
(define-public python-conda-inject
(package
(name "python-conda-inject")