From 1b11e894b8b70cb6f8f08f8e11451bb687c7aa0a Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 23 Jul 2020 14:03:21 +0200 Subject: gnu: Add python-pgpy. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-crypto.scm (python-pgpy): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-crypto.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 97f5903840e..7ea86d1f7bb 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2019 Guillaume Le Vaillant ;;; Copyright © 2019 Clément Lassieur ;;; Copyright © 2020 Alexandros Theodotou +;;; Copyright © 2020 Justus Winter ;;; ;;; This file is part of GNU Guix. ;;; @@ -1446,3 +1447,30 @@ can decide how long it takes to hash a password and how much memory is required. data such as API keys, cryptocurrency wallets, or seeds for digital signatures.") (license (list license:expat license:asl2.0)))) ; dual licensed + +(define-public python-pgpy + (package + (name "python-pgpy") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PGPy" version)) + (sha256 + (base32 + "0i4lqhzdwkjkim3wab0kqadx28z3r5ixlh6qxj4lif4gif56c0m7")))) + (build-system python-build-system) + (native-inputs + `(("python-cryptography" ,python-cryptography) + ("python-pyasn1" ,python-pyasn1) + ("python-singledispatch" ,python-singledispatch) + ("python-six" ,python-six))) + (home-page "https://github.com/SecurityInnovation/PGPy") + (synopsis "Python implementation of OpenPGP") + (description + "Currently, PGPy can load keys and signatures of all kinds in both ASCII +armored and binary formats. + +It can create and verify RSA, DSA, and ECDSA signatures, at the moment. It +can also encrypt and decrypt messages using RSA and ECDH.") + (license license:bsd-3))) -- cgit v1.3 From df6fb956c56708b745ff5501ce0b943c30281ec5 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 23 Jul 2020 14:03:22 +0200 Subject: gnu: Add python-sop. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-crypto.scm (python-sop): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-crypto.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 7ea86d1f7bb..ecf82f20781 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1474,3 +1474,34 @@ armored and binary formats. It can create and verify RSA, DSA, and ECDSA signatures, at the moment. It can also encrypt and decrypt messages using RSA and ECDH.") (license license:bsd-3))) + +(define-public python-sop + (package + (name "python-sop") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sop" version)) + (sha256 + (base32 + "0gljyjsdn6hdmwlwwb5g5s0c031p6izamvfxp0d39x60af8k5jyf")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; There are no tests, and unittest throws an error trying + ; to find some: + ; TypeError: don't know how to make test from: 0.2.0 + (home-page "https://gitlab.com/dkg/python-sop") + (synopsis "Stateless OpenPGP Command-Line Interface") + (description + "The Stateless OpenPGP Command-Line Interface (or sop) is a +specification that encourages OpenPGP implementors to provide a common, +relatively simple command-line API for purposes of object security. + +This Python module helps implementers build such a CLI from any implementation +accessible to the Python interpreter. + +It does not provide such an implementation itself -- this is just the +scaffolding for the command line, which should make it relatively easy to +supply a handful of python functions as methods to a class.") + (license license:expat))) ; MIT license -- cgit v1.3 From 4764e83ce9b7c73e66325226a4690ec6c1fc487c Mon Sep 17 00:00:00 2001 From: Jelle Licht Date: Wed, 5 Aug 2020 12:44:15 +0200 Subject: gnu: python-m2crypto: Add swig as native-input. * gnu/packages/python-crypto.scm (python-m2crypto)[native-inputs]: Add swig. --- gnu/packages/python-crypto.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index ecf82f20781..f3f104df8d2 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -56,6 +56,7 @@ #:use-module (gnu packages python-check) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages swig) #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module ((guix licenses) #:prefix license:) @@ -1014,6 +1015,7 @@ in userspace) (base32 "09yirf3w77w6f49q6nxhrjm9c3a4y9s30s1k09chqrw8zdgx8sjc")))) (build-system python-build-system) (inputs `(("openssl" ,openssl))) + (native-inputs `(("swig" ,swig))) (home-page "https://gitlab.com/m2crypto/m2crypto") (synopsis "Python crypto and TLS toolkit") (description "@code{M2Crypto} is a complete Python wrapper for OpenSSL -- cgit v1.3 From 960dafce5cede173b83a47d6b65233eb87230aaf Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Fri, 7 Aug 2020 10:24:14 -0300 Subject: gnu: Add python-trustme. * gnu/packages/python-crypto.scm (python-trustme): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/python-crypto.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index f3f104df8d2..c1ff92c452b 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2019 Clément Lassieur ;;; Copyright © 2020 Alexandros Theodotou ;;; Copyright © 2020 Justus Winter +;;; Copyright © 2020 Vinicius Monego ;;; ;;; This file is part of GNU Guix. ;;; @@ -54,6 +55,7 @@ #:use-module (gnu packages protobuf) #:use-module (gnu packages python) #:use-module (gnu packages python-check) + #:use-module (gnu packages python-compression) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages swig) @@ -1349,6 +1351,42 @@ items and collections, editing items, locking and unlocking collections (asynchronous unlocking is also supported).") (license license:bsd-3))) +(define-public python-trustme + (package + (name "python-trustme") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trustme" version)) + (sha256 + (base32 "0v3vr5z6apnfmklf07m45kv5kaqvm6hxrkaqywch57bjd2siiywx")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv")))))) + (native-inputs + `(("python-more-itertools" ,python-more-itertools) + ("python-pyopenssl" ,python-pyopenssl) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-service-identity" ,python-service-identity) + ("python-zipp" ,python-zipp))) + (propagated-inputs + `(("python-cryptography" ,python-cryptography))) + (home-page "https://github.com/python-trio/trustme") + (synopsis "Fake a certificate authority for tests") + (description + "@code{trustme} is a tiny Python package that does one thing: it gives you +a fake certificate authority (CA) that you can use to generate fake TLS certs to +use in your tests.") + ;; Either license applies. + (license (list license:expat license:asl2.0)))) + (define-public python-jeepney (package (name "python-jeepney") -- cgit v1.3 From 5e5c695deabeb8164c86246236e9f483f837f22d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 9 Aug 2020 15:37:28 +0300 Subject: gnu: Add python-certipy. * gnu/packages/python-crypto.scm (python-certipy): New variable. --- gnu/packages/python-crypto.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index c1ff92c452b..96837e3cdee 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1387,6 +1387,30 @@ use in your tests.") ;; Either license applies. (license (list license:expat license:asl2.0)))) +(define-public python-certipy + (package + (name "python-certipy") + (version "0.1.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "certipy" version)) + (sha256 + (base32 + "0n980gqpzh0fm58h3i4mi2i10wgj606lscm1r5sk60vbf6vh8mv9")))) + (build-system python-build-system) + (propagated-inputs + `(("python-pyopenssl" ,python-pyopenssl))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/LLNL/certipy") + (synopsis "Utility to create and sign CAs and certificates") + (description + "Certipy was made to simplify the certificate creation process. To that +end, certipy exposes methods for creating and managing certificate authorities, +certificates, signing and building trust bundles.") + (license license:bsd-3))) + (define-public python-jeepney (package (name "python-jeepney") -- cgit v1.3