aboutsummaryrefslogtreecommitdiff
path: root/battering/packages/python-xyz.scm
diff options
context:
space:
mode:
Diffstat (limited to 'battering/packages/python-xyz.scm')
-rw-r--r--battering/packages/python-xyz.scm38
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)))