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 UGxBAipLrl/QLQAA0tVLHw (envelope-from ) for ; Fri, 13 Nov 2020 09:00:26 +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 mG+qOSlLrl/xUwAA1q6Kng (envelope-from ) for ; Fri, 13 Nov 2020 09:00:25 +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 276C3940946 for ; Fri, 13 Nov 2020 09:00:21 +0000 (UTC) Received: from localhost ([::1]:52214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdUwO-0005Lk-4I for larch@yhetil.org; Fri, 13 Nov 2020 04:00:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdUw6-0005LV-RP for guix-patches@gnu.org; Fri, 13 Nov 2020 04:00:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdUw6-0000y1-1g for guix-patches@gnu.org; Fri, 13 Nov 2020 04:00:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdUw5-0006ZP-VZ for guix-patches@gnu.org; Fri, 13 Nov 2020 04:00:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#41807] [PATCHES] Add python-sanic and dependencies. Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Nov 2020 09:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41807 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: paul Cc: 41807@debbugs.gnu.org X-Debbugs-Original-Cc: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160525797425192 (code B ref -1); Fri, 13 Nov 2020 09:00:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Nov 2020 08:59:34 +0000 Received: from localhost ([127.0.0.1]:46628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdUvU-0006Y6-EN for submit@debbugs.gnu.org; Fri, 13 Nov 2020 03:59:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:40844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdUvR-0006Xy-Sb for submit@debbugs.gnu.org; Fri, 13 Nov 2020 03:59:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdUvR-0005FZ-K6 for guix-patches@gnu.org; Fri, 13 Nov 2020 03:59:21 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:33730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdUvO-0000kV-7j for guix-patches@gnu.org; Fri, 13 Nov 2020 03:59:21 -0500 Received: by mail-wm1-x32f.google.com with SMTP id p19so7632541wmg.0 for ; Fri, 13 Nov 2020 00:59:17 -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:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=WnAw0Hf2HFdQaJMUYv+b/Q8iUXjKxR0IPDhX/Y3s7N8=; b=GmvMNvhlydObSs4bCQejCsprnytqx2B+VX/BYu6Nz0ClR5IjUF3tA2cU4u0eMngjfO pvtSDDihIjQBX81pBe6ey1DxJ/kAFQWxHCfd27RwJJGlPfPtJ4n9YX6yMqO3bfL9aCvA bDcyHonPO08mxOc4oCWf3u8L+WETuZm6n/U0BDqmmxz2LcjMko8ZSqyvWY6Ds6TOWPs3 uV8UHgrSrMr4vlM73F1/fr0lFiGTs0hfECdds9hqEJQ4Ht418iISDgpyzWHlVed7Wu+p wQwy9gsQmOfKKUH3NN3XnxNcIOG4dRGvxiaWXLjrDRe18dg2GgyyaVEQ0ZQUQdpEFn3y eo7w== 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WnAw0Hf2HFdQaJMUYv+b/Q8iUXjKxR0IPDhX/Y3s7N8=; b=buk4Wyq9ml+L9kd3fcdSP0mc7PSqiZjaH1+jDNPV4fwTl5E7KRTNVG7EbhEq0Dmy6Y hF/n2cq+gg1VbUekTgwgBw5Sa7hCzrnvVeOLc/oI4BFzNoQfHD9jue96Az3/XHwFypRc PIYAB72vDfnIWLXkrKBvkl42yvH2q6+z2EQ6OjRXz8iaYnC598U4ZDigB9k9fmKF3GFh VQj6p3lZTMupa3Wgu4/VPlvv6ikK37FA5R2TykpTlXKT4sBrAXh6FqwRA/5RlVF81zfy I5Gu33OzMdUIaGusOawdh6k+EvkQQFSR2IOIcFE+HOX2fqWUQSX4Z5qioYEuHRGnsF5t udfw== X-Gm-Message-State: AOAM531x+YXGzEBPrUIdvEy2R1utcOO3uqPWhG9EdpRaCq5y5at1VMue DK7wdx8nS1dWYKUNdyU0SX2lPwG212y65hOTgXI3BPSSmoNZ8ydCB108/aiS3q8X9G3RSapwLFu afOuDH25b0g4uUYyGvySht47M3wbzDPt7fMAKfPkloOetjky5vlDVwH8fd7x+EuKVaDacHPBGly eqsA== X-Google-Smtp-Source: ABdhPJzZJ3UnL2dZTRekdNE1ZE1bu20MTw4y2pK287kzoWQbDLQKncNdCapg8awvmvTKjSZ1NM8SeQ== X-Received: by 2002:a1c:87:: with SMTP id 129mr1474017wma.34.1605257956422; Fri, 13 Nov 2020 00:59:16 -0800 (PST) Received: from localhost (dynamic-2a01-0c22-c828-6f00-3019-652f-ba61-b682.c22.pool.telefonica.de. [2a01:c22:c828:6f00:3019:652f:ba61:b682]) by smtp.gmail.com with ESMTPSA id 109sm10296505wra.29.2020.11.13.00.59.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 00:59:14 -0800 (PST) Date: Fri, 13 Nov 2020 09:59:14 +0100 From: Lars-Dominik Braun Message-ID: <20201113085914.GC3133@zpidnp36> References: <20200617064940.GA5119@zpidnp36> <8c50cb48-c90c-9c2d-b2d5-5186cf4c688a@autistici.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Xm/fll+QQv+hsKip" Content-Disposition: inline In-Reply-To: <8c50cb48-c90c-9c2d-b2d5-5186cf4c688a@autistici.org> Received-SPF: none client-ip=2a00:1450:4864:20::32f; envelope-from=ldb@leibniz-psychology.org; helo=mail-wm1-x32f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) 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: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=leibniz-psychology-org.20150623.gappssmtp.com header.s=20150623 header.b=GmvMNvhl; dmarc=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: -1.61 X-TUID: lj28HK17k0Xw --Xm/fll+QQv+hsKip Content-Type: multipart/mixed; boundary="YD3LsXFS42OYHhNZ" Content-Disposition: inline --YD3LsXFS42OYHhNZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, > I managed to package sanic following your channel definition (and enabled > tests), I updated some packages, removed some other packages that were > already merged in Guix and produced an updated patch set. I=E2=80=99ve tested the patches with a real application and made some minor modifications pointed out by `guix lint`. Also python-sanic requests multidict=3D=3D5.0.0, which we don=E2=80=99t have right now. But it seems t= o work with 4.7.5 just fine. Cheers, Lars --=20 Lars-Dominik Braun Wissenschaftlicher Mitarbeiter/Research Associate www.leibniz-psychology.org ZPID - Leibniz-Institut f=C3=BCr Psychologie / ZPID - Leibniz Institute for Psychology Universit=C3=A4tsring 15 D-54296 Trier - Germany Tel.: +49=E2=80=93651=E2=80=93201-4964 --YD3LsXFS42OYHhNZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-Add-python-contextvars.patch" Content-Transfer-Encoding: quoted-printable =46rom a9d80c2beee8dfcff1a5c8b23a1acdcab89b267b Mon Sep 17 00:00:00 2001 =46rom: Giacomo Leidi Date: Mon, 8 Jun 2020 23:57:19 +0200 Subject: [PATCH 01/10] gnu: Add python-contextvars. * gnu/packages/python-xyz.scm (python-contextvars): New variable. --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e5b8db02e0..3284128d79 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22672,3 +22672,24 @@ applications with variable CPU loads).") =20 (define-public python2-parallel (package-with-python2 python-parallel)) + +(define-public python-contextvars + (package + (name "python-contextvars") + (version "2.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "contextvars" version)) + (sha256 + (base32 + "17n3w8c20kgkgc6khaafdhhlcdj4bzman4paxqsl7harma59137k")))) + (build-system python-build-system) + (propagated-inputs + `(("python-immutables" ,python-immutables))) + (home-page + "https://github.com/MagicStack/contextvars") + (synopsis "PEP 567 Backport") + (description "This package implements a backport of Python 3.7 +@code{contextvars} module (see PEP 567) for Python 3.6.") + (license license:asl2.0))) --=20 2.26.2 --YD3LsXFS42OYHhNZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0002-gnu-Add-python-aiofiles.patch" Content-Transfer-Encoding: quoted-printable =46rom cd1d8c98637f43c386d51a74e2508ac25ae4b2e0 Mon Sep 17 00:00:00 2001 =46rom: Giacomo Leidi Date: Tue, 9 Jun 2020 17:40:32 +0200 Subject: [PATCH 02/10] gnu: Add python-aiofiles. * gnu/packages/python-xyz.scm (python-aiofiles): New variable. --- gnu/packages/python-xyz.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3284128d79..77b7222959 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22693,3 +22693,21 @@ applications with variable CPU loads).") (description "This package implements a backport of Python 3.7 @code{contextvars} module (see PEP 567) for Python 3.6.") (license license:asl2.0))) + +(define-public python-aiofiles + (package + (name "python-aiofiles") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiofiles" version)) + (sha256 + (base32 + "1bqmv019x16qa3zah0z915cw6z4va3fjs60fk2s7vyah3gyvrrlq")))) + (build-system python-build-system) + (home-page "https://github.com/Tinche/aiofiles") + (synopsis "File support for @code{asyncio}") + (description "@code{python-aiofiles} is a library for handling local +disk files in asyncio applications.") + (license license:asl2.0))) --=20 2.26.2 --YD3LsXFS42OYHhNZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0003-gnu-Add-python-hstspreload.patch" Content-Transfer-Encoding: quoted-printable =46rom dda0406a4e36565ef241003104cb54c552df5577 Mon Sep 17 00:00:00 2001 =46rom: Giacomo Leidi Date: Tue, 20 Oct 2020 12:37:54 +0200 Subject: [PATCH 03/10] gnu: Add python-hstspreload. * gnu/packages/python-web.scm (python-hstspreload): New variable. --- gnu/packages/python-web.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index e9dde499d5..37c5980dc2 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5194,3 +5194,24 @@ over IMAP: @item Work with mailbox folders (list, set, get, create, exists, rename, d= elete, status) @end itemize") (license license:asl2.0))) + +(define-public python-hstspreload + (package + (name "python-hstspreload") + (version "2020.10.20") + (source + (origin + (method url-fetch) + (uri (pypi-uri "hstspreload" version)) + (sha256 + (base32 + "1qah80p2xlib1rhivvdj9v5y3girxrj7dwp1mnh8mwaj5wy32y8a")))) + (build-system python-build-system) + (home-page + "https://github.com/sethmlarson/hstspreload") + (synopsis + "Chromium HSTS Preload list as a Python package") + (description + "@code{python-hstspreload} contains Chromium HSTS Preload list +as a Python package.") + (license license:bsd-3))) --=20 2.26.2 --YD3LsXFS42OYHhNZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0004-gnu-Add-python-mypy-extensions.patch" Content-Transfer-Encoding: quoted-printable =46rom c835de22832e8c7fb33cf6eec1aa0afb029253ca Mon Sep 17 00:00:00 2001 =46rom: Giacomo Leidi Date: Tue, 9 Jun 2020 19:06:02 +0200 Subject: [PATCH 04/10] gnu: Add python-mypy-extensions. * gnu/packages/python-xyz.scm (python-mypy-extensions): New variable. --- gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 77b7222959..6f13c730bd 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22711,3 +22711,25 @@ applications with variable CPU loads).") (description "@code{python-aiofiles} is a library for handling local disk files in asyncio applications.") (license license:asl2.0))) + +(define-public python-mypy-extensions + (package + (name "python-mypy-extensions") + (version "0.4.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "mypy-extensions" version)) + (sha256 + (base32 + "1a04qsk8hd1lqns8w1j7cr0vmvbhg450di5k1i16kqxkbf7q30id")))) + (build-system python-build-system) + (home-page + "https://github.com/python/mypy_extensions") + (synopsis + "Experimental type system extensions for mypy") + (description + "@code{python-mypy-extensions} defines experimental extensions +to the standard @code{typing} module that are supported by the +@code{mypy} typechecker.") + (license license:expat))) --=20 2.26.2 --YD3LsXFS42OYHhNZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0005-gnu-Add-python-pyre-extensions.patch" Content-Transfer-Encoding: quoted-printable =46rom 1f021271add8115a03f1645d5e02c6a664360225 Mon Sep 17 00:00:00 2001 =46rom: Giacomo Leidi Date: Wed, 10 Jun 2020 12:52:20 +0200 Subject: [PATCH 05/10] gnu: Add python-pyre-extensions. * gnu/packages/python-xyz.scm (python-pyre-extensions): New variable. --- gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6f13c730bd..a1ae408c82 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22733,3 +22733,27 @@ disk files in asyncio applications.") to the standard @code{typing} module that are supported by the @code{mypy} typechecker.") (license license:expat))) + +(define-public python-pyre-extensions + (package + (name "python-pyre-extensions") + (version "0.0.18") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyre-extensions" version)) + (sha256 + (base32 + "0c5cbbqrfyjwakdh3kbwxis6mbrbwky1z1fqslgszgpcj4g43q30")))) + (build-system python-build-system) + (propagated-inputs + `(("python-typing-extensions" + ,python-typing-extensions) + ("python-typing-inspect" ,python-typing-inspect))) + (home-page "https://pyre-check.org") + (synopsis + "Type system extensions for use with @code{python-pyre}") + (description + "@code{python-pyre-extensions} defines extensions to the standard +@code{typing} module that are supported by the Pyre typechecker.") + (license license:expat))) --=20 2.26.2 --YD3LsXFS42OYHhNZ Content-Type: text/x-diff; charset=iso-8859-1 Content-Disposition: attachment; filename="0006-gnu-Add-python-nbsphinx.patch" Content-Transfer-Encoding: quoted-printable =46rom 22e6e518b43feab5082618de8c53f72fab1b90ca Mon Sep 17 00:00:00 2001 =46rom: Giacomo Leidi Date: Tue, 20 Oct 2020 12:43:17 +0200 Subject: [PATCH 06/10] gnu: Add python-nbsphinx. * gnu/packages/sphinx.scm (python-nbsphinx): New variable. --- gnu/packages/sphinx.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index ac506ecbe5..5172f246a1 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -13,6 +13,7 @@ ;;; Copyright =A9 2019 Nicolas Goaziou ;;; Copyright =A9 2019 Alexandros Theodotou ;;; Copyright =A9 2019 Brett Gilio +;;; Copyright =A9 2020 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -642,3 +643,32 @@ translate and to apply translation to Sphinx generated= document.") documentation when a change is detected. It also includes a livereload enabled web server.") (license license:expat))) + +(define-public python-nbsphinx + (package + (name "python-nbsphinx") + (version "0.7.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "nbsphinx" version)) + (sha256 + (base32 + "0j56bxdj08vn3q1804qwb1ywhga1mdg1awgm7i64wfpfwi8df2zm")))) + (build-system python-build-system) + (propagated-inputs + `(("python-docutils" ,python-docutils) + ("python-jinja2" ,python-jinja2) + ("python-nbconvert" ,python-nbconvert) + ("python-nbformat" ,python-nbformat) + ("python-sphinx" ,python-sphinx) + ("python-traitlets" ,python-traitlets))) + (home-page "https://nbsphinx.readthedocs.io/") + (synopsis "Jupyter Notebook Tools for Sphinx") + (description "@code{python-nbsphinx} is a Sphinx extension that +provides a source parser for @code{*.ipynb} files. Custom Sphinx +directives are used to show Jupyter Notebook code cells (and of course +their results) in both HTML and LaTeX output. Un-evaluated notebooks +- i.e. notebooks without stored output cells - will be automatically +executed during the Sphinx build process.") + (license license:expat))) --=20 2.26.2 --YD3LsXFS42OYHhNZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0007-gnu-Add-python-dataclasses.patch" Content-Transfer-Encoding: quoted-printable =46rom 4c17f3615e43e5cbeae80898a649535232923aea Mon Sep 17 00:00:00 2001 =46rom: Giacomo Leidi Date: Wed, 10 Jun 2020 17:00:25 +0200 Subject: [PATCH 07/10] gnu: Add python-dataclasses. * gnu/packages/python-xyz.scm (python-dataclasses): New variable. --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a1ae408c82..17c38ec5aa 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22757,3 +22757,24 @@ to the standard @code{typing} module that are supp= orted by the "@code{python-pyre-extensions} defines extensions to the standard @code{typing} module that are supported by the Pyre typechecker.") (license license:expat))) + +(define-public python-dataclasses + (package + (name "python-dataclasses") + (version "0.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "dataclasses" version)) + (sha256 + (base32 + "1rh8111fbws2vxyf2qy2zw3x6p6cq1jfz8pf904gig5qwg56sjj9")))) + (build-system python-build-system) + (home-page + "https://github.com/ericvsmith/dataclasses") + (synopsis + "Backport of the @code{dataclasses} module for Python 3.6") + (description + "This is an implementation of PEP 557, Data Classes. It is a +backport of the @code{dataclasses} module for Python 3.6.") + (license license:asl2.0))) --=20 2.26.2 --YD3LsXFS42OYHhNZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0008-gnu-Add-python-pywatchman.patch" Content-Transfer-Encoding: quoted-printable =46rom a726b42ccf10f8ee08ff5fab5049990d3a0080c8 Mon Sep 17 00:00:00 2001 =46rom: Giacomo Leidi Date: Wed, 10 Jun 2020 17:58:58 +0200 Subject: [PATCH 08/10] gnu: Add python-pywatchman. * gnu/packages/python-xyz.scm (python-pywatchman): New variable. --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 17c38ec5aa..fb5c117aa8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22778,3 +22778,24 @@ to the standard @code{typing} module that are supp= orted by the "This is an implementation of PEP 557, Data Classes. It is a backport of the @code{dataclasses} module for Python 3.6.") (license license:asl2.0))) + +(define-public python-pywatchman + (package + (name "python-pywatchman") + (version "1.4.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pywatchman" version)) + (sha256 + (base32 + "1yf2gm20wc3djpb5larxii3l55xxby0il2ns3q0v1byyfnr7w16h")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ;there are none + (home-page + "https://facebook.github.io/watchman/") + (synopsis "Watchman client for python") + (description "@code{python-pywatchman} is a library to connect and +query Watchman to discover file changes.") + (license license:bsd-3))) --=20 2.26.2 --YD3LsXFS42OYHhNZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0009-gnu-Add-python-pytest-sanic.patch" Content-Transfer-Encoding: quoted-printable =46rom fe0fe1a37494f1894e2425dad2a239c557cf9925 Mon Sep 17 00:00:00 2001 =46rom: Giacomo Leidi Date: Fri, 13 Nov 2020 09:54:01 +0100 Subject: [PATCH 09/10] gnu: Add python-pytest-sanic. * gnu/packages/python-check.scm (python-pytest-sanic): New variable. --- gnu/packages/python-check.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index dcd4bb90d8..314ca5795c 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1078,3 +1078,31 @@ any Python VM with basically no runtime overhead.") (description "Robber is a Python assertion library for test-driven and behavior-driven development (TDD and BDD).") (license license:expat))) + +;; This is only used by python-sanic +(define-public python-pytest-sanic + (package + (name "python-pytest-sanic") + (version "1.6.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-sanic" version)) + (sha256 + (base32 + "02ajd8z77ahi69kzkz200qgxrb4s2j4qb6k8j9ds1kz6qa6fsa34")))) + (build-system python-build-system) + (arguments + ;; Tests depend on python-sanic. + `(#:tests? #f)) + (propagated-inputs + `(("python-aiohttp" ,python-aiohttp) + ("python-async-generator" + ,python-async-generator) + ("python-pytest" ,python-pytest))) + (home-page + "https://github.com/yunstanford/pytest-sanic") + (synopsis "Pytest plugin for Sanic") + (description "A pytest plugin for Sanic. It helps you to test your +code asynchronously.") + (license license:expat))) --=20 2.26.2 --YD3LsXFS42OYHhNZ Content-Type: text/x-diff; charset=iso-8859-1 Content-Disposition: attachment; filename="0010-gnu-Add-python-sanic.patch" Content-Transfer-Encoding: quoted-printable =46rom 34bba96451cb29cb38706d04f7703301b1ae7dd7 Mon Sep 17 00:00:00 2001 =46rom: Giacomo Leidi Date: Fri, 13 Nov 2020 09:55:19 +0100 Subject: [PATCH 10/10] gnu: Add python-sanic. * gnu/packages/python-web.scm (python-sanic): New variable. --- gnu/packages/python-web.scm | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 37c5980dc2..958cbd5323 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -39,6 +39,7 @@ ;;; Copyright =A9 2020 Edouard Klein ;;; Copyright =A9 2020 Vinicius Monego ;;; Copyright =A9 2020 Konrad Hinsen +;;; Copyright =A9 2020 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -5215,3 +5216,62 @@ over IMAP: "@code{python-hstspreload} contains Chromium HSTS Preload list as a Python package.") (license license:bsd-3))) + +(define-public python-sanic + (package + (name "python-sanic") + (version "20.9.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sanic" version)) + (sha256 + (base32 + "06p0lsxqbfbka2yaqlpp0bg5pf7ma44zi6kq7qbb6hhry48dp1w6")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'use-recent-pytest + ;; Allow using recent dependencies. + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "setup.py" + (("httpcore=3D=3D0.3.0") "httpcore") + (("pytest=3D=3D5.2.1") "pytest") + (("multidict=3D=3D5.0.0") "multidict")) + #t)) + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv" "./tests" "-k" + "not test_zero_downtime and not test_gunicorn_worker"= )))))) + (propagated-inputs + `(("python-aiofiles" ,python-aiofiles) + ("python-httptools" ,python-httptools) + ("python-httpx" ,python-httpx) + ("python-multidict" ,python-multidict) + ("python-ujson" ,python-ujson) + ("python-uvloop" ,python-uvloop) + ("python-websockets" ,python-websockets))) + (native-inputs + `(("gunicorn" ,gunicorn) + ("python-beautifulsoup4" ,python-beautifulsoup4) + ("python-hstspreload" ,python-hstspreload) + ("python-httpcore" ,python-httpcore) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-benchmark" ,python-pytest-benchmark) + ("python-pytest-sanic" ,python-pytest-sanic) + ("python-pytest-sugar" ,python-pytest-sugar) + ("python-urllib3" ,python-urllib3) + ("python-uvicorn" ,python-uvicorn))) + (home-page + "https://github.com/huge-success/sanic/") + (synopsis + "Async Python 3.6+ web server/framework") + (description + "Sanic is a Python 3.6+ web server and web framework +that's written to go fast. It allows the usage of the +@code{async/await} syntax added in Python 3.5, which makes +your code non-blocking and speedy.") + (license license:expat))) --=20 2.26.2 --YD3LsXFS42OYHhNZ-- --Xm/fll+QQv+hsKip Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEyk+M9DfXR4/aBV/UQhN3ARo3hEYFAl+uSt8ACgkQQhN3ARo3 hEbXLgv8DQDE+qK081k18GZ3ZWnXnn7nNCArEvikJoIt0FMQbepHGMdBnyoylQzx EkTTRCz4EJJ24JkpHNKsEaltdKlAisPcPoUeIjSbaTvkr6eHyLU0mBYeTvh0tvKj CDVxAbBddnD/ejuc8Lekcz2mskO+vwb7+QX1tZbjxNobW0B6DagVZXp7D4YZlYdI 3JBj5O5dv9zYZ6/LIsbIDMiK5GjA8f/yHmPEC/6ONh8Fx36Y7TftUt6gvhdbcBlc vBkcIIq+TretkldH6aiMK0mxwF5F4tP22IB+paHuaXY4CqSnQTYQwUlnWzTHAmMP GvkTacbRoGCXOvZCj/kyp4ymsfnGrnZwBCZh5pmrSqRp08QicDubrl5ZK5yqzP0M PRB/GPjdLFv54azHLRa/hquJqmDj1m/Jr7AN4wEveY+zpeBgbClUmlBI/v4qMRcl kCa2NQyGJFUcxbmKURRgFJpS9umtkQwTyVuTfkgRsNm4We6lH0QLfS5nMwXRMRJI lPn/BQuH =7gCE -----END PGP SIGNATURE----- --Xm/fll+QQv+hsKip--