diff options
author | Hanketsu <hanketsu@egregore.fun> | 2025-02-28 01:36:43 +0100 |
---|---|---|
committer | Hanketsu <hanketsu@egregore.fun> | 2025-06-13 00:04:33 +0200 |
commit | 6d875f701dfd7ba861cdd1113c261b74f6281dbf (patch) | |
tree | eb254a54521a478c028646c48b2b6fdf96d5cfd6 /battering | |
parent | 571010c58a1102d7cbd82e7ef1ffab9e64764552 (diff) |
battering: Add python-oscrypto.
* battering/packages/python-xyz.scm (python-oscrypto): New variable.
Diffstat (limited to 'battering')
-rw-r--r-- | battering/packages/python-xyz.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/battering/packages/python-xyz.scm b/battering/packages/python-xyz.scm index 0a37494..ec664af 100644 --- a/battering/packages/python-xyz.scm +++ b/battering/packages/python-xyz.scm @@ -2,17 +2,21 @@ #:use-module (guix build-system pyproject) #:use-module (guix build-system python) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages certs) #:use-module (gnu packages check) #:use-module (gnu packages pdf) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-science) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages tls) #:use-module (gnu packages tmux) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml)) @@ -183,3 +187,37 @@ toolkit.") (synopsis "Pre-authentication encoding (PAE) implementation in Python") (description "Pre-authentication encoding (PAE) implementation in Python.") (license license:expat))) + +(define-public python-oscrypto + (package + (name "python-oscrypto") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wbond/oscrypto") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1v5wkmzcyiqy39db8j2dvkdrv2nlsc48556h73x4dzjwd6kg4q0a")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-asn1crypto openssl)) + (native-inputs (list python-setuptools python-wheel python-pip nss-certs-for-test)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'skip-internet-tests + (lambda _ + (setenv "OSCRYPTO_SKIP_INTERNET_TESTS" "1")))))) + (home-page "https://github.com/wbond/oscrypto") + (synopsis + "Compiler-free Python crypto library backed by the OS, supporting CPython +and PyPy") + (description + "TLS (SSL) sockets, key generation, encryption, decryption, signing, +verification and KDFs using the OS crypto libraries. Does not require a +compiler, and relies on the OS for patching. Works on Windows, OS X and +Linux/BSD.") + (license license:expat))) |