From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:38742) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTWjz-0006G5-72 for guix-patches@gnu.org; Tue, 28 Apr 2020 16:22:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTWjy-0007Vo-F8 for guix-patches@gnu.org; Tue, 28 Apr 2020 16:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTWjx-0007V7-Ul for guix-patches@gnu.org; Tue, 28 Apr 2020 16:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTWjx-0003Ax-QD for guix-patches@gnu.org; Tue, 28 Apr 2020 16:22:01 -0400 Subject: [bug#40511] [REDO 1] [PATCH 8/10] gnu: Add python-cheroot. Resent-Message-ID: References: <87d08h51lw.fsf@dustycloud.org> <87d07rtmvt.fsf@dustycloud.org> <87368ntmp3.fsf@dustycloud.org> From: Christopher Lemmer Webber In-reply-to: <87368ntmp3.fsf@dustycloud.org> Date: Tue, 28 Apr 2020 16:21:16 -0400 Message-ID: <87o8rbs6o3.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0008-gnu-Add-python-cheroot.patch 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: 40511@debbugs.gnu.org >From fd6a8ecaf8d6ee39fbd01188950fd8235de72842 Mon Sep 17 00:00:00 2001 From: Christopher Lemmer Webber Date: Tue, 28 Apr 2020 15:22:40 -0400 Subject: [PATCH 08/10] gnu: Add python-cheroot. * gnu/packages/python-xyz.scm (python-cheroot): New variable. --- gnu/packages/python-xyz.scm | 53 +++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a6d86cbc50..d3b0b61441 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -19801,3 +19801,56 @@ and watchdog.") (description "Provides fake a fake TLS certificate authority for Python unit tests.") (license license:asl2.0))) + +(define-public python-cheroot + (package + (name "python-cheroot") + (version "8.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cheroot" version)) + (sha256 + (base32 + "0cc9cb5via001zkna0i2qp5s0bn1w327q6k7fba2f5v650gpwmx0")))) + (build-system python-build-system) + (propagated-inputs + `(("python-jaraco-functools" ,python-jaraco-functools) + ("python-more-itertools" ,python-more-itertools) + ("python-six" ,python-six))) + (arguments + ;; needs a newer pytest :\ + `(#:tests? #f + ;; So we're also kicking out the dependency giving us + ;; trouble... + #:phases + (modify-phases %standard-phases + ;; Not importing the googleapis package for now + (add-after 'unpack 'ignore-googleapis + (lambda _ + (substitute* "setup.py" + (("'python-pytest-testmon',") "")) + #t))))) + (native-inputs + `(("python-codecov" ,python-codecov) + ("python-colorama" ,python-colorama) + ("python-coverage" ,python-coverage) + ("python-jaraco-text" ,python-jaraco-text) + ("python-pyopenssl" ,python-pyopenssl) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-mock" ,python-pytest-mock) + ("python-pytest-sugar" ,python-pytest-sugar) + ("python-pytest-watch" ,python-pytest-watch) + ("python-pytest-xdist" ,python-pytest-xdist) + ("python-requests-unixsocket" + ,python-requests-unixsocket) + ("python-trustme" ,python-trustme) + ("python-urllib3" ,python-urllib3) + ("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive))) + (home-page "https://cheroot.cherrypy.org") + (synopsis + "Pure-python HTTP server with an emphasis on performance") + (description + "Cheroot is the pure-Python HTTP server used by CherryPy.") + (license license:bsd-3))) -- 2.26.0