From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AAZGCeCBVF9AHQAA0tVLHw (envelope-from ) for ; Sun, 06 Sep 2020 06:29:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gI4oBeCBVF/hZAAA1q6Kng (envelope-from ) for ; Sun, 06 Sep 2020 06:29:52 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DDE0F94028F for ; Sun, 6 Sep 2020 06:29:51 +0000 (UTC) Received: from localhost ([::1]:53380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEnX9-00033o-Lx for larch@yhetil.org; Sun, 06 Sep 2020 01:48:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEnX1-0002yq-BN for guix-patches@gnu.org; Sun, 06 Sep 2020 01:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33013) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEnX1-0006r4-2T for guix-patches@gnu.org; Sun, 06 Sep 2020 01:48:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEnX1-0004dj-1p for guix-patches@gnu.org; Sun, 06 Sep 2020 01:48:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43233] [PATCH 05/10] gnu: Add python-uvicorn. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Sep 2020 05:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43233 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43233@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 43233-submit@debbugs.gnu.org id=B43233.159937126117736 (code B ref 43233); Sun, 06 Sep 2020 05:48:03 +0000 Received: (at 43233) by debbugs.gnu.org; 6 Sep 2020 05:47:41 +0000 Received: from localhost ([127.0.0.1]:44544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEnWf-0004c0-Ib for submit@debbugs.gnu.org; Sun, 06 Sep 2020 01:47:41 -0400 Received: from mout01.posteo.de ([185.67.36.65]:49015) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEnWd-0004bk-Sl for 43233@debbugs.gnu.org; Sun, 06 Sep 2020 01:47:40 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 40F2F16005F for <43233@debbugs.gnu.org>; Sun, 6 Sep 2020 07:47:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1599371254; bh=7Zp85EuVu4upuOsjqrpKMUmQ6t+xmoQBWcbSMTSh9CY=; h=From:To:Cc:Subject:Date:From; b=c1knfnIah40TXPLTvni0cNrQHOQneSgWfKgqDIbSMEKjIgiA7zrZZsav8LdpQhg+H PbDXmweV0X85K9XPRAIwhrZ1tjn6fOjIWCx2jif3cCMoubEGGdzOPu432vaIc7J6NY OwQ4AtbM1WQZjF5znHwEdndQzB+XCan6kXTxHgeqyR/RbkAF7KnFcKq3amdvsJs+JA F+FadEGEZIfAOxXjFhpO2DZTB6TKSJb/La0zHtqNdTtSCY0Qj+CU5s67Zcp9wV30Jt lSPd0o1+7H7GRcbvIqrFq8xTDEZVTspK161E7cVikhIqIvepsYHupkpUtNKj+IGFBL ev5VR3HxlOstg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BkgRT0m2wz9rxN; Sun, 6 Sep 2020 07:47:32 +0200 (CEST) From: Vinicius Monego Date: Sun, 6 Sep 2020 02:46:48 -0300 Message-Id: <20200906054653.467-4-monego@posteo.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200906054653.467-1-monego@posteo.net> References: <20200906054653.467-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=c1knfnIa; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 5.09 X-TUID: MUPFQZgRxRpm * gnu/packages/python-web.scm (python-uvicorn): New variable. --- gnu/packages/python-web.scm | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 49699a7bc5..d772506607 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4044,6 +4044,55 @@ and fairly speedy.") "@code{httptools} is a Python binding for the nodejs HTTP parser.") (license license:expat))) +(define-public python-uvicorn + (package + (name "python-uvicorn") + (version "0.11.8") + (source + (origin + ;; PyPI tarball has no tests. + (method git-fetch) + (uri (git-reference + (url "https://github.com/encode/uvicorn") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00iidg5ysp7k00bw3kmkvr8mghnh4jdi0p2ryiarhryf8wz2r3fy")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv")))))) + (native-inputs + `(("python-black" ,python-black) + ("python-codecov" ,python-codecov) + ("python-flake8" ,python-flake8) + ("python-isort" ,python-isort) + ("python-mypy" ,python-mypy) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-mock" ,python-pytest-mock) + ("python-requests" ,python-requests))) + (propagated-inputs + `(("python-click" ,python-click) + ("python-h11" ,python-h11) + ("python-httptools" ,python-httptools) + ("python-pyyaml" ,python-pyyaml) + ("python-uvloop" ,python-uvloop) + ("python-watchgod" ,python-watchgod) + ("python-websockets" ,python-websockets) + ("python-wsproto" ,python-wsproto))) + (home-page "https://github.com/encode/uvicorn") + (synopsis "Lightning-fast ASGI server") + (description + "@code{uvicorn} is a lightning-fast ASGI server implementation, using +@code{uvloop} and @code{httptools}. It currently supports HTTP/1.1 and +WebSockets. Support for HTTP/2 is planned.") + (license license:bsd-3))) + (define-public python-translation-finder (package (name "python-translation-finder") -- 2.20.1