From patchwork Wed Jan 8 09:10:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Dominik Braun X-Patchwork-Id: 19690 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 D283C179BF; Wed, 8 Jan 2020 09:13:06 +0000 (GMT) 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,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 4D4671798F for ; Wed, 8 Jan 2020 09:13:06 +0000 (GMT) Received: from localhost ([::1]:40860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip7Oj-0005G3-MX for patchwork@mira.cbaines.net; Wed, 08 Jan 2020 04:13:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55561) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip7Mm-0002hx-Fq for guix-patches@gnu.org; Wed, 08 Jan 2020 04:11:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ip7Mk-0004WW-Ko for guix-patches@gnu.org; Wed, 08 Jan 2020 04:11:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43765) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ip7Mk-0004WK-GB for guix-patches@gnu.org; Wed, 08 Jan 2020 04:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ip7Mk-0001rG-BJ for guix-patches@gnu.org; Wed, 08 Jan 2020 04:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39028] [PATCH] gnu: Add python-asyncssh and dependencies Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Jan 2020 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39028 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39028@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15784746127067 (code B ref -1); Wed, 08 Jan 2020 09:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jan 2020 09:10:12 +0000 Received: from localhost ([127.0.0.1]:49734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ip7Lv-0001ps-EW for submit@debbugs.gnu.org; Wed, 08 Jan 2020 04:10:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:37790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ip7Lt-0001pg-8o for submit@debbugs.gnu.org; Wed, 08 Jan 2020 04:10:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54653) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip7Lr-0001Y6-4y for guix-patches@gnu.org; Wed, 08 Jan 2020 04:10:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ip7Lp-0003R2-5q for guix-patches@gnu.org; Wed, 08 Jan 2020 04:10:07 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:35777) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ip7Lo-0003Ph-Qq for guix-patches@gnu.org; Wed, 08 Jan 2020 04:10:05 -0500 Received: by mail-wm1-x333.google.com with SMTP id p17so1649004wmb.0 for ; Wed, 08 Jan 2020 01:10:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leibniz-psychology-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=yNKipOZ8ZsoSGzQyT8ZHaOB45E55S0BVlJjMjknxOB8=; b=OikPr1+leoPdWc8oCADKE1KptEmM1GGEpu38Pj/cXzRrM7hgKpVmqHgerO5KApViHD o2Xf/0/3S0X3I3GtHoHRwBhEcJZxyk3yhgsNLEjs3aRVI2CbUpeVuXywdPmCZSHmiNWs pmxtyyo7t+m+mq/OAJWIQzJSqbXrpSkHS6EKalw9hYAbvpwsdoB0Gb7otaRrY4TBLVKn XdRooOpCbzC5mK8KUDmgkebZzf5scvcKGvgkellRkUXVDiDm/sXHAsokgHXK3aSwGAFU zUIVhxYPfemBdnjo2uHDv2qFyXJ5QZOOPxOSD91x1P8B3uguRDqxwVuXrV+J76dKlS7X uwPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=yNKipOZ8ZsoSGzQyT8ZHaOB45E55S0BVlJjMjknxOB8=; b=rU1Hoq3eYfQzf4XhDWK2ISviz2N3BxBXotmTd8qwA5FggRiIiRBsxc2y8sy0eM1EdT yporZLwAutR6ZlvAr+fa0/lhuQRPXHYnnK3rP/iWcv+tBZ0Fzn0GDZx+Hq11q+A7sWiv Cq+GaM91etLqKxfZko3feRtsRK+XpLuJ8FNDGy6bPiHCkknB0gLxExB2IxTC9H0dA+6L MBN5ZlUoJ77J2DezC3u7Gosp3BDi16MxIcAkmg3ApnDZhQctYy/0+HhRcc04YNsXTtGK xKd2E/7huIdM76Fn7DB2/dryI7kf9ATSRh9Szsfw9tiYGEoQ45wRZxhpsoghbJ0y80XA s1WQ== X-Gm-Message-State: APjAAAWAOd15GDjiFcsfOPdK0P2t+8nJpQjaHVCZ520/ZqIy9uG+RVCZ Iu/GM+5dvZM9uCVtUKfvvMJ6WYr9Xezr5uMVyAe+cR5PTpWAKlkU1SUe5ZegQjeIIhNXNXab8VN W5/VSh4irdO/8Azn7F3zGBh+ClFq9HO4fRDX17v+np//66hELU6yEOHCaI5e6v9PZj0nAu4fhny Qbhj/MZU0= X-Google-Smtp-Source: APXvYqxbwpA1saOR/9eSgf0g4D47Q7rKM5BKoU0i6uhgB/8lGxZP3MhZcWVketDdB6D+UNbv+D6Mhw== X-Received: by 2002:a05:600c:305:: with SMTP id q5mr2618560wmd.167.1578474602381; Wed, 08 Jan 2020 01:10:02 -0800 (PST) Received: from localhost (zpidlx9.uni-trier.de. [136.199.85.49]) by smtp.gmail.com with ESMTPSA id f1sm2111084wmc.45.2020.01.08.01.10.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 01:10:01 -0800 (PST) Date: Wed, 8 Jan 2020 10:10:01 +0100 From: Lars-Dominik Braun Message-ID: <20200108091001.GA32230@zpidnp36> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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-crypto.scm (python-cryptography-vectors): Version bump to 2.8 (python-cryptography): Version bump to 2.8 (python-pyopenssl)[arguments]: Disable failing tests * gnu/packages/python-xyz.scm (python-asyncssh): New variable (python-gssapi): New variable (python-k5test): New variable (python-forbiddenfruit): New variable (python-shouldbe): New variable --- gnu/packages/python-crypto.scm | 14 ++- gnu/packages/python-xyz.scm | 164 +++++++++++++++++++++++++++++++++ 2 files changed, 173 insertions(+), 5 deletions(-) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 43a0d95ddc..eb5be5e794 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -361,14 +361,14 @@ is used by the Requests library to verify HTTPS requests.") (define-public python-cryptography-vectors (package (name "python-cryptography-vectors") - (version "2.7") + (version "2.8") (source (origin (method url-fetch) (uri (pypi-uri "cryptography_vectors" version)) (sha256 (base32 - "1g38zw90510azyfrj6mxbslx2gp9yrnv5dac0w2819k9ssdznbgi")))) + "05pi3shqz0fgvy0d5yazza67bbnam8fkrx2ayrrclgkaqms23lvc")))) (build-system python-build-system) (home-page "https://github.com/pyca/cryptography") (synopsis "Test vectors for the cryptography package") @@ -383,14 +383,14 @@ is used by the Requests library to verify HTTPS requests.") (define-public python-cryptography (package (name "python-cryptography") - (version "2.7") + (version "2.8") (source (origin (method url-fetch) (uri (pypi-uri "cryptography" version)) (sha256 (base32 - "1inlnr36kl36551c9rcad99jmhk81v33by3glkadwdcgmi17fd76")))) + "0l8nhw14npknncxdnp7n4hpmjyscly6g7fbivyxkjwvlv071zniw")))) (build-system python-build-system) (inputs `(("openssl" ,openssl))) @@ -456,7 +456,11 @@ message digests and key derivation functions.") "not test_fallback_default_verify_paths " ;; This test attempts to make a connection to ;; an external web service. - "and not test_set_default_verify_paths"))))))) + "and not test_set_default_verify_paths " + ;; These fail for unknown reasons. + "and not test_add_extra_chain_cert " + "and not test_use_certificate_chain_file_bytes " + "and not test_use_certificate_chain_file_unicode"))))))) (propagated-inputs `(("python-cryptography" ,python-cryptography) ("python-six" ,python-six))) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 194d8b8b0c..ae69fc974c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -112,6 +112,7 @@ #:use-module (gnu packages icu4c) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) + #:use-module (gnu packages kerberos) #:use-module (gnu packages libevent) #:use-module (gnu packages libffi) #:use-module (gnu packages linux) @@ -17117,3 +17118,166 @@ scripts to load entry points more quickly.") functional combinators. Parser combinators are just higher-order functions that take parsers as their arguments and return them as result values.") (license license:expat))) + +(define-public python-asyncssh + (package + (name "python-asyncssh") + (version "2.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "asyncssh" version)) + (sha256 + (base32 + "101kxyydrps9lc716vjs0nrvzfjp8644iir1xm19pl0ma73b9l0r")))) + (build-system python-build-system) + (propagated-inputs + `(("python-cryptography" ,python-cryptography) + ("python-pyopenssl" ,python-pyopenssl) + ("python-gssapi" ,python-gssapi) + ("python-bcrypt" ,python-bcrypt))) + ;; required for test suite + (native-inputs + `(("openssh" ,openssh) + ("openssl" ,openssl))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-tests + (lambda* _ + (substitute* "tests/test_agent.py" + ;; Test fails for unknown reason + (("async def test_confirm") + "@unittest.skip('disabled by guix')\n " + "async def test_confirm"))))))) + (home-page "https://asyncssh.readthedocs.io/") + (synopsis + "Asynchronous SSHv2 client and server library") + (description + "AsyncSSH is a Python package which provides an asynchronous client and +server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio +framework") + (license license:epl2.0))) + +(define-public python-gssapi + (package + (name "python-gssapi") + (version "1.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "gssapi" version)) + (sha256 + (base32 + "1gymg4asvwrz7y13qpwp2s5g8qwq179d72gkj09q6bfcgs82l5wr")))) + (build-system python-build-system) + (propagated-inputs + `(("python-decorator" ,python-decorator) + ("python-six" ,python-six))) + (inputs + `(("mit-krb5" ,mit-krb5))) + ;; for tests + (native-inputs + `(("python-shouldbe" ,python-shouldbe) + ("python-parameterized" ,python-parameterized) + ("python-k5test" ,python-k5test) + ("python-nose" ,python-nose))) + (home-page + "https://github.com/pythongssapi/python-gssapi") + (synopsis "Python GSSAPI Wrapper") + (description "Python-GSSAPI provides both low-level and high level wrappers +around the GSSAPI C libraries. While it focuses on the Kerberos mechanism, it +should also be useable with other GSSAPI mechanisms.") + (license license:isc))) + +(define-public python-k5test + (package + (name "python-k5test") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "k5test" version)) + (sha256 + (base32 + "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8")))) + (build-system python-build-system) + (propagated-inputs + `(("python-six" ,python-six) + ;; `which`, `kadmin.local` binaries called inside library + ("which" ,which) + ("mit-krb5" ,mit-krb5))) + (native-inputs `(("mit-krb5" ,mit-krb5))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* _ + (substitute* "k5test/realm.py" + (("'kadmin_local'") "'kadmin.local'"))))))) + (home-page + "https://github.com/pythongssapi/k5test") + (synopsis + "Library for testing Python applications in self-contained Kerberos 5 +environments") + (description + "k5test is a library for setting up self-contained Kerberos 5 +environments, and running Python unit tests inside those environments. +It is based on the file of the same name found alongside the MIT Kerberos 5 +unit tests.") + (license license:isc))) + +(define-public python-forbiddenfruit + (package + (name "python-forbiddenfruit") + (version "0.1.3") + (source + (origin + ;; Source tarball on PyPi lacks Makefile that builds and runs tests + (method git-fetch) + (uri (git-reference + (url "https://github.com/clarete/forbiddenfruit") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fp2xvdqpi910j9r3q68x38phpxbm700gjdi2m2j5gs91xdnyyh2")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "make" "SKIP_DEPS=1")))))) + (native-inputs + `(("python-nose" ,python-nose) + ("python-coverage" ,python-coverage))) + (home-page + "https://github.com/clarete/forbiddenfruit") + (synopsis "Patch python built-in objects") + (description "This project allows Python code to extend built-in types.") + (license (list license:gpl3+ license:expat)))) + +(define-public python-shouldbe + (package + (name "python-shouldbe") + (version "0.1.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "shouldbe" version)) + (sha256 + (base32 + "16zbvjxf71dl4yfbgcr6idyim3mdrfvix1dv8b95p0s9z07372pj")))) + (build-system python-build-system) + (propagated-inputs + `(("python-forbiddenfruit" ,python-forbiddenfruit))) + (native-inputs + `(("python-nose" ,python-nose))) + (home-page + "https://github.com/directxman12/should_be") + (synopsis + "Python Assertion Helpers inspired by Shouldly") + (description + "Python Assertion Helpers inspired by Shouldly") + (license license:isc))) +