From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDFi0-0006gX-CB for guix-patches@gnu.org; Tue, 23 May 2017 15:43:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDFhu-0000he-M0 for guix-patches@gnu.org; Tue, 23 May 2017 15:43:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDFhu-0000hS-Ik for guix-patches@gnu.org; Tue, 23 May 2017 15:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dDFhu-0002CS-9c for guix-patches@gnu.org; Tue, 23 May 2017 15:43:02 -0400 Subject: bug#27043: [PATCH] gnu: Add python-asn1crypto. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDFhb-0006PJ-LX for guix-patches@gnu.org; Tue, 23 May 2017 15:42:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDFhX-0000Yb-NH for guix-patches@gnu.org; Tue, 23 May 2017 15:42:43 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:51597) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dDFhX-0000Y9-4q for guix-patches@gnu.org; Tue, 23 May 2017 15:42:39 -0400 Received: from localhost.localdomain (50-254-163-34-static.hfc.comcastbusiness.net [50.254.163.34]) by mail.messagingengine.com (Postfix) with ESMTPA id E7F6E7E0EE for ; Tue, 23 May 2017 15:42:37 -0400 (EDT) From: Leo Famulari Date: Tue, 23 May 2017 15:42:27 -0400 Message-Id: <112e5a50205629b8d4c5de726c45f6c2f1666699.1495568547.git.leo@famulari.name> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27043@debbugs.gnu.org * gnu/packages/crypto.scm (python-asn1crypto, python2-asn1crypto): New variables. --- gnu/packages/crypto.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 856308afe..86cd777ef 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -51,7 +51,8 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system cmake) - #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix build-system python)) (define-public libsodium (package @@ -414,3 +415,27 @@ utility as a demonstration of the @code{scrypt} key derivation function. @code{Scrypt} is designed to be far more resistant against hardware brute-force attacks than alternative functions such as @code{PBKDF2} or @code{bcrypt}.") (license license:bsd-2))) + +(define-public python-asn1crypto + (package + (name "python-asn1crypto") + (version "0.22.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "asn1crypto" version)) + (sha256 + (base32 + "06pd1bglyisjnjkgc5dc24b498q9r8fmvwkfn0janr9i1mjdvfnb")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; Tests are not distributed via PyPi. + (home-page "https://github.com/wbond/asn1crypto") + (synopsis "ASN.1 parser and serializer in Python") + (description "Fast ASN.1 parser and serializer with definitions for private +keys, public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, +PKCS#12, PKCS#5, X.509 and TSP.") + (license license:expat))) + +(define-public python2-asn1crypto + (package-with-python2 python-asn1crypto)) -- 2.13.0