From: Vinicius Monego <monego@posteo.net>
To: 42742@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#42742] [PATCH 2/4] gnu: Add python-trustme.
Date: Fri, 7 Aug 2020 10:24:14 -0300 [thread overview]
Message-ID: <20200807132416.49309-2-monego@posteo.net> (raw)
In-Reply-To: <20200807132416.49309-1-monego@posteo.net>
* gnu/packages/python-crypto.scm (python-trustme): New variable.
---
gnu/packages/python-crypto.scm | 38 ++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index ecf82f2078..f3349b505d 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -23,6 +23,7 @@
;;; Copyright © 2019 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
;;; Copyright © 2020 Justus Winter <justus@sequoia-pgp.org>
+;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
;;;
;;; 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 time)
@@ -1347,7 +1349,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")
--
2.20.1
next prev parent reply other threads:[~2020-08-07 13:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-07 13:24 [bug#42741] [PATCH 1/4] gnu: Add python-outcome Vinicius Monego
2020-08-07 13:24 ` Vinicius Monego [this message]
2020-08-09 11:55 ` bug#42742: [PATCH 2/4] gnu: Add python-trustme Efraim Flashner
2020-08-07 13:24 ` [bug#42743] [PATCH 3/4] gnu: Add python-trio Vinicius Monego
2020-08-09 11:56 ` bug#42743: " Efraim Flashner
2020-08-07 13:24 ` [bug#42744] [PATCH 4/4] gnu: Add python-pytest-trio Vinicius Monego
2020-08-09 11:56 ` bug#42744: " Efraim Flashner
2020-08-07 18:45 ` [bug#42741] [PATCH 1/4] gnu: Add python-outcome Brett Gilio
2020-08-07 19:30 ` Vinicius Monego
2020-08-08 13:35 ` Vinicius Monego
2020-08-09 11:55 ` bug#42741: " Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200807132416.49309-2-monego@posteo.net \
--to=monego@posteo.net \
--cc=42742@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).