From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:43327) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jE6Y7-0004Y8-If for guix-patches@gnu.org; Tue, 17 Mar 2020 03:22:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jE6Y6-00011h-CP for guix-patches@gnu.org; Tue, 17 Mar 2020 03:22:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60380) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jE6Y6-00010N-8l for guix-patches@gnu.org; Tue, 17 Mar 2020 03:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jE6Y6-0003I5-58 for guix-patches@gnu.org; Tue, 17 Mar 2020 03:22:02 -0400 Subject: [bug#40100] [PATCH 1/6] gnu: Add python-keyrings.alt. References: <20200317071432.GM927@E5400> In-Reply-To: <20200317071432.GM927@E5400> Resent-Message-ID: From: Efraim Flashner Date: Tue, 17 Mar 2020 09:20:35 +0200 Message-Id: <20200317072040.31229-1-efraim@flashner.co.il> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 40100@debbugs.gnu.org Cc: Efraim Flashner * gnu/packages/python-crypto.scm (python-keyring.alt): New variable. --- gnu/packages/python-crypto.scm | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 23c06267a7..724ec378da 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -377,6 +377,45 @@ password storage.") (propagated-inputs `(("python2-pycrypto" ,python2-pycrypto)))))) +(define-public python-keyrings.alt + (package + (name "python-keyrings.alt") + (version "3.4.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "keyrings.alt" version)) + (sha256 + (base32 + "0gdjdqpq2hf770p6iwi891mil0vbsdhvy88x0v8b2w4y4b28lcli")) + (modules '((guix build utils))) + (snippet + '(begin + (delete-file "keyrings/alt/_win_crypto.py") + ;; Rely on python-keyring>20: + ;; https://github.com/jaraco/keyrings.alt/issues/33 + (substitute* '("keyrings/alt/tests/test_Gnome.py" + "keyrings/alt/tests/test_Google.py" + "keyrings/alt/tests/test_Windows.py" + "keyrings/alt/tests/test_file.py" + "keyrings/alt/tests/test_pyfs.py") + (("keyring.tests.test_backend") "keyring.testing.backend") + (("keyring.tests.util") "keyring.testing.util")) + #t)))) + (build-system python-build-system) + (native-inputs + `(("python-keyring" ,python-keyring) + ("python-pytest" ,python-pytest) + ("python-setuptools-scm" ,python-setuptools-scm))) + (home-page "https://github.com/jaraco/keyrings.alt") + (synopsis "Alternate keyring implementations") + (description "Keyrings in this package may have security risks or other +implications. These backends were extracted from the main keyring project to +make them available for those who wish to employ them, but are discouraged for +general production use. Include this module and use its backends at your own +risk.") + (license license:expat))) + (define-public python-certifi (package (name "python-certifi") -- 2.25.1