From patchwork Fri Aug 30 14:25:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Bakke X-Patchwork-Id: 15187 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1F97E17368; Fri, 30 Aug 2019 15:45:44 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id D20F517365 for ; Fri, 30 Aug 2019 15:45:43 +0100 (BST) Received: from localhost ([::1]:32904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3i9n-00054L-Dn for patchwork@mira.cbaines.net; Fri, 30 Aug 2019 10:45:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58352) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3hsQ-0002ro-52 for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3hsN-0003ti-NM for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:45 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45855) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3hrs-0002fZ-Am for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:43 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3hrq-0003rL-4N for guix-patches@gnu.org; Fri, 30 Aug 2019 10:27:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37234] [PATCH 15/21] gnu: Add python-jose. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Aug 2019 14:27:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37234 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37234@debbugs.gnu.org Received: via spool by 37234-submit@debbugs.gnu.org id=B37234.156717518014634 (code B ref 37234); Fri, 30 Aug 2019 14:27:10 +0000 Received: (at 37234) by debbugs.gnu.org; 30 Aug 2019 14:26:20 +0000 Received: from localhost ([127.0.0.1]:54643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3hr1-0003nl-JC for submit@debbugs.gnu.org; Fri, 30 Aug 2019 10:26:20 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:52509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3hqn-0003kU-6e for 37234@debbugs.gnu.org; Fri, 30 Aug 2019 10:26:06 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id CE384359 for <37234@debbugs.gnu.org>; Fri, 30 Aug 2019 10:26:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 30 Aug 2019 10:26:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=lyDfZ/Mb0sLQY aD8csT+tw6raBtE+axaAUAGX8i8kF4=; b=Vce6hcPNnzUZ3kzryKRkVK3HbjBkL N3fpreeMWJvn3huQ6p/vNMMosfGhgUjAyga6LSQTcCoNdocJmeUZmBusL7zAzEWA 2P9q9RsKJfx1YCAnBZa8DZ5qh3uH8FjLkv0Je7J3R3t8Sw7hHJMrFhW+eHfcQnuV B/CJPoDeGh2f7wK38ckKjq4vG0zg6lBQfHlSGmIHHnTUUOGobmAkv+r9463x0nB4 HEhe96ML5/nGm0x61tgT+0n6fZJ3GGYuFeproZEzyMy0FXk1j6YE0MzFftnhcx+2 lPiXlsf+cphY45tl0FKjjKIdaDZn3jibl3sgCN132pxA3LAPJf7Mj4sGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=lyDfZ/Mb0sLQYaD8csT+tw6raBtE+axaAUAGX8i8kF4=; b=N+q7Rizm vU1cFK4GLM6MGPus6BOh79xY5rCNkOxATOeSUcuw1W53XSIxUE/719aL6hVz0WVL G4RkTQ9MnvsOt9bAlJZEkp/2L8GITVY9cHffxqmQ7vxcpTCdwmONnFNKshZW0b9i ajmt9wAImdFOXzC+1wwaU1Yy7eemH+W6ygeDzgNNJeR1FyKGP+09tXA4fry2uCSP dXumdFLG+KB2k8jw0ef2UFm7QtZV2rPo3NdiBjQBhfFISrXRUl6qadQqCZZZEpsa zhWdal2AIrzsSOjl+i/TA1gmQ1m2jCN7iOmuQ1bUFcs1ttDmcL/jQh73WvTkUsk8 qz8kJz0QapJ/iw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeigedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepofgrrhhiuhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghs thhmrghilhdrtghomheqnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepie dvrdduiedrudelvddrudehtdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgv sehfrghsthhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpeduud X-ME-Proxy: Received: from localhost (ti0006q161-0149.bb.online.no [62.16.192.150]) by mail.messagingengine.com (Postfix) with ESMTPA id 123A880064 for <37234@debbugs.gnu.org>; Fri, 30 Aug 2019 10:26:03 -0400 (EDT) From: Marius Bakke Date: Fri, 30 Aug 2019 16:25:33 +0200 Message-Id: <20190830142539.28376-15-mbakke@fastmail.com> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190830142539.28376-1-mbakke@fastmail.com> References: <20190830142539.28376-1-mbakke@fastmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-jose): New public variable. --- gnu/packages/python-web.scm | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 6695bd5e39..6ae5fd6860 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -389,6 +389,48 @@ Swartz.") (define-public python2-html2text (package-with-python2 python-html2text)) +(define-public python-jose + (package + (name "python-jose") + (version "3.0.1") + (home-page "http://github.com/mpdavis/python-jose") + (source (origin + (method git-fetch) + (uri (git-reference (url home-page) (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ahq4m86z504bnlk9z473r7r3dprg5m39900rld797hbczdhqa4f")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest" "-vv" "-m" + ;; Test only the pyca/cryptography backend. + "not (pycryptodome or pycrypto or backend_compatibility)")))))) + (native-inputs + `(;; All native inputs are for tests. + ("python-ecdsa" ,python-ecdsa) + ("python-pyasn1" ,python-pyasn1) + ("python-pycrypto" ,python-pycrypto) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-runner" ,python-pytest-runner))) + (propagated-inputs + `(("python-cryptography" ,python-cryptography) + ("python-future" ,python-future) ;XXX: remove for >3.0.1 + ("python-rsa" ,python-rsa) + ("python-six" ,python-six))) + (synopsis "JOSE implementation in Python") + (description + "The @dfn{JavaScript Object Signing and Encryption} (JOSE) technologies +- JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and +JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or sign +content using a variety of algorithms.") + (license license:expat))) + (define-public python-jsondiff (package (name "python-jsondiff")