unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41807] [PATCHES] Add python-sanic and dependencies.
@ 2020-06-11 14:59 paul
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                   ` (2 more replies)
  0 siblings, 3 replies; 38+ messages in thread
From: paul @ 2020-06-11 14:59 UTC (permalink / raw)
  To: 41807

Hi Guix,

I'm sending a patch series to add python-sanic, its dependencies and 
some dependencies of mypy.

Thanks for having a look at these patches,

Giacomo





^ permalink raw reply	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 01/26] gnu: Add python-outcome.
  2020-06-11 14:59 [bug#41807] [PATCHES] Add python-sanic and dependencies paul
@ 2020-06-11 15:13 ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 02/26] gnu: Add python-immutables Giacomo Leidi
                     ` (24 more replies)
  2020-06-11 20:41 ` [bug#41807] [PATCHES] Add python-sanic and dependencies paul
  2020-06-17  6:49 ` Lars-Dominik Braun
  2 siblings, 25 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm (python-outcome): New variable.
---
 gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index abf12ec4e0..11630d4818 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20070,3 +20070,31 @@ For the most part it's transliterated from C, the major differences are:
 @end itemize
 ")
     (license license:gpl3+)))
+
+(define-public python-outcome
+  (package
+    (name "python-outcome")
+    (version "1.0.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "outcome" version))
+        (sha256
+          (base32
+            "0vxn04vspmlkkyijjkjnsc46f93ki8g62hr7ag10zpd7ic324y7w"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-attrs" ,python-attrs)))
+    (native-inputs
+     `(("python-async-generator"
+         ,python-async-generator)
+       ("python-pytest" ,python-pytest)))
+    (home-page
+      "https://github.com/python-trio/outcome")
+    (synopsis
+      "Capture the outcome of Python function calls")
+    (description
+     "@code{python-outcome} provides a function for capturing the
+outcome of a Python function call, so that it can be passed around.")
+    ;; Choice of either license.
+    (license (list license:expat license:asl2.0))))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 02/26] gnu: Add python-immutables.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 03/26] gnu: Add python-contextvars Giacomo Leidi
                     ` (23 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm (python-immutables): New variable.
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 11630d4818..106a6802bd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20098,3 +20098,29 @@ For the most part it's transliterated from C, the major differences are:
 outcome of a Python function call, so that it can be passed around.")
     ;; Choice of either license.
     (license (list license:expat license:asl2.0))))
+
+(define-public python-immutables
+  (package
+    (name "python-immutables")
+    (version "0.14")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "immutables" version))
+        (sha256
+          (base32
+            "0y0aqw29g525frdnmv9paljzacpp4s21sadfbca5b137iciwr8d0"))))
+    (build-system python-build-system)
+    (home-page
+      "https://github.com/MagicStack/immutables")
+    (synopsis "High-performance immutable mapping type for Python")
+    (description "@code{python-immutables} provides an immutable mapping
+type for Python.  The underlying datastructure is a Hash Array Mapped Trie
+(HAMT), and it's used in Clojure, Scala, Haskell, and other functional
+languages.  This implementation is used in CPython 3.7 in the contextvars module
+(see PEP 550 and PEP 567 for more details).
+
+Immutable mappings based on HAMT have O(log N) performance for both @code{set()}
+and @code{get()} operations, which is essentially O(1) for relatively
+small mappings.")
+    (license license:asl2.0)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 03/26] gnu: Add python-contextvars.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 02/26] gnu: Add python-immutables Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 04/26] gnu: Add python-curio Giacomo Leidi
                     ` (22 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* 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 106a6802bd..03d30b9d15 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20124,3 +20124,24 @@ Immutable mappings based on HAMT have O(log N) performance for both @code{set()}
 and @code{get()} operations, which is essentially O(1) for relatively
 small mappings.")
     (license license:asl2.0)))
+
+(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)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 04/26] gnu: Add python-curio.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 02/26] gnu: Add python-immutables Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 03/26] gnu: Add python-contextvars Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 05/26] gnu: Add python-sniffio Giacomo Leidi
                     ` (21 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm (python-curio): 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 03d30b9d15..ea6b68580f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20145,3 +20145,25 @@ small mappings.")
     (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-curio
+  (package
+    (name "python-curio")
+    (version "1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "curio" version))
+       (sha256
+        (base32
+         "16wkww6kh511b9bzsfhpvrv0766cc6ssgbzz4lgpjnrzzgx21wwh"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-sphinx" ,python-sphinx)))
+    (home-page "https://github.com/dabeaz/curio")
+    (synopsis "Coroutine-based library for Python")
+    (description "Curio is a coroutine-based library for concurrent Python
+systems programming.  It provides standard programming abstractions such
+as tasks, sockets, files, locks, and queues.")
+    (license license:bsd-3)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 05/26] gnu: Add python-sniffio.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (2 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 04/26] gnu: Add python-curio Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 06/26] gnu: Add python-trustme Giacomo Leidi
                     ` (20 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm: (python-sniffio): New variable.
---
 gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ea6b68580f..d671c66e9d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20167,3 +20167,30 @@ small mappings.")
 systems programming.  It provides standard programming abstractions such
 as tasks, sockets, files, locks, and queues.")
     (license license:bsd-3)))
+
+(define-public python-sniffio
+  (package
+    (name "python-sniffio")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sniffio" version))
+       (sha256
+        (base32
+         "08bsp2pp2dxzn9yzcafwzw8jlm0jf50as0ix8vfhxzk91w810f4f"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-contextvars" ,python-contextvars)
+       ("python-curio" ,python-curio)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (home-page
+     "https://github.com/python-trio/sniffio")
+    (synopsis
+     "Detects which async library some code is running under")
+    (description
+     "@code{python-sniffio} enables detection of the async library any Python
+async function is running under.")
+    ;; Choice of either license.
+    (license (list license:expat license:asl2.0))))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 06/26] gnu: Add python-trustme.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (3 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 05/26] gnu: Add python-sniffio Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 07/26] gnu: Add python-trio Giacomo Leidi
                     ` (19 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm (python-trustme): New variable.
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d671c66e9d..f1feccd8c2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20194,3 +20194,29 @@ as tasks, sockets, files, locks, and queues.")
 async function is running under.")
     ;; Choice of either license.
     (license (list license:expat license:asl2.0))))
+
+(define-public python-trustme
+  (package
+    (name "python-trustme")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "trustme" version))
+       (sha256
+        (base32
+         "0v3vr5z6apnfmklf07m45kv5kaqvm6hxrkaqywch57bjd2siiywx"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cryptography" ,python-cryptography)
+       ("python-idna" ,python-idna)
+       ("python-ipaddress" ,python-ipaddress)))
+    (home-page
+     "https://github.com/python-trio/trustme")
+    (synopsis
+     "Generates self-signed TLS certificates for testing purposes")
+    (description
+     "@code{python-trustme} is a Python package that generates self-signed
+TLS certificates for testing purposes.")
+    ;; Choice of either license.
+    (license (list license:expat license:asl2.0))))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 07/26] gnu: Add python-trio.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (4 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 06/26] gnu: Add python-trustme Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 08/26] gnu: Add python-httptools Giacomo Leidi
                     ` (18 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm (python-trio): New variable.
---
 gnu/packages/python-xyz.scm | 58 +++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f1feccd8c2..b6dec540ab 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20220,3 +20220,61 @@ async function is running under.")
 TLS certificates for testing purposes.")
     ;; Choice of either license.
     (license (list license:expat license:asl2.0))))
+
+(define-public python-trio
+  (package
+    (name "python-trio")
+    (version "0.15.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "trio" version))
+       (sha256
+        (base32
+         "0cvzd0ls2c5971v7rw1jpxq533sdjblb15xwsd2axcnqp158c41h"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; This test fails with a timeout error.
+           (delete-file "trio/_core/tests/test_ki.py")
+           ;; This test depends on trio/_core/tests/test_ki.py.
+           (delete-file "trio/tests/test_threads.py")
+           ;; This test depends on network access.
+           (delete-file "trio/tests/test_socket.py")
+           ;; This test depends on writing to $HOME.
+           (delete-file "trio/tests/test_exports.py")))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-astor" ,python-astor)
+       ("python-jedi" ,python-jedi)
+       ("python-pylint" ,python-pylint)
+       ("python-pyopenssl" ,python-pyopenssl)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-trustme" ,python-trustme)))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      (invoke "pytest")
+                      #t)))))
+    (propagated-inputs
+     `(("python-async-generator"
+        ,python-async-generator)
+       ("python-attrs" ,python-attrs)
+       ("python-cffi" ,python-cffi)
+       ("python-contextvars" ,python-contextvars)
+       ("python-idna" ,python-idna)
+       ("python-outcome" ,python-outcome)
+       ("python-sniffio" ,python-sniffio)
+       ("python-sortedcontainers"
+        ,python-sortedcontainers)))
+    (home-page "https://github.com/python-trio/trio")
+    (synopsis
+     "Python library for async concurrency and I/O")
+    (description
+     "The Trio project's goal is to produce a production-quality,
+permissively licensed, async/await-native I/O library for Python.")
+    ;; Choice of either license.
+    (license (list license:expat license:asl2.0))))
+
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 08/26] gnu: Add python-httptools.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (5 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 07/26] gnu: Add python-trio Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 09/26] gnu: Add python-aiofiles Giacomo Leidi
                     ` (17 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-web.scm (python-httptools): New variable.
* gnu/packages/python-xyz.scm (python-cython-0.29.14): New variable.
---
 gnu/packages/python-web.scm | 67 +++++++++++++++++++++++++++++++++++++
 gnu/packages/python-xyz.scm | 11 ++++++
 2 files changed, 78 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index c01a86935c..83333d5f1c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -37,6 +37,7 @@
 ;;; Copyright © 2020 Holger Peters <holger.peters@posteo.de>
 ;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
 ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
+;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4029,3 +4030,69 @@ request/response web apps to larger, grown applications.")
 than 326,000 known user-agents.  Users can pick a random one, or select one
 based on filters.")
     (license license:expat)))
+
+(define-public python-httptools
+  (package
+    (name "python-httptools")
+    (version "0.1.1")
+    (source (origin
+              ;; The PyPI release does not contain tests.
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/MagicStack/httptools.git")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0g08128x2ixsiwrzskxc6c8ymgzs39wbzr5mhy0mjk30q9pqqv77"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-hardcoded-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((http-parser (assoc-ref inputs "http-parser")))
+               (substitute* "httptools/parser/cparser.pxd"
+                 (("\\.\\./\\.\\./vendor/http-parser/http_parser\\.h")
+                  (string-append http-parser "/include/http_parser.h"))))
+             #t))
+         (add-after 'patch-hardcoded-paths 'disable-failing-test
+           (lambda _
+             ;; TestResponseParser.test_parser_response_1 fails every time.
+             ;; We force it to pass to avoid patching it out.
+             (substitute* "tests/test_parser.py"
+               (("data received after completed connection")
+                "invalid constant string"))
+             #t))
+         (replace 'build
+           (lambda _
+             (invoke "python" "setup.py" "build_ext"
+                     "--use-system-http-parser" "--inplace")
+             #t))
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (invoke "python" "setup.py" "install"
+                       (string-append "--prefix=" out)
+                       "--single-version-externally-managed" "--root=/"
+                       "--skip-build")
+               #t)))
+         (replace 'check
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (invoke "pytest")
+               #t))))))
+    (inputs
+     `(("http-parser" ,http-parser)))
+    (native-inputs
+     `(("python-cython" ,python-cython-0.29.14)
+       ("python-pytest" ,python-pytest)))
+    (home-page
+     "https://github.com/MagicStack/httptools")
+    (synopsis
+     "Python bindings for the NodeJS HTTP parser")
+    (description
+     "@code{python-httptools} creates Python bindings for the
+NodeJS HTTP parser.  It provides collection of framework independent HTTP
+protocol utils.")
+    (license license:expat)))
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b6dec540ab..78bc419845 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20278,3 +20278,14 @@ permissively licensed, async/await-native I/O library for Python.")
     ;; Choice of either license.
     (license (list license:expat license:asl2.0))))
 
+;; This is only needed for python-httptools.
+(define-public python-cython-0.29.14
+  (package (inherit python-cython)
+    (version "0.29.14")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "Cython" version))
+       (sha256
+        (base32
+         "050lh336791yl76krn44zm2dz00mlhpb26bk9fq9wcfh0f3vpmp4"))))))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 09/26] gnu: Add python-aiofiles.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (6 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 08/26] gnu: Add python-httptools Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 10/26] gnu: Add python-h11 Giacomo Leidi
                     ` (16 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* 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 78bc419845..46b60ee98b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20289,3 +20289,21 @@ permissively licensed, async/await-native I/O library for Python.")
        (sha256
         (base32
          "050lh336791yl76krn44zm2dz00mlhpb26bk9fq9wcfh0f3vpmp4"))))))
+
+(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)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 10/26] gnu: Add python-h11.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (7 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 09/26] gnu: Add python-aiofiles Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 11/26] gnu: Add python-hpack Giacomo Leidi
                     ` (15 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-web.scm (python-h11): New variable.
---
 gnu/packages/python-web.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 83333d5f1c..dcfe523912 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4096,3 +4096,30 @@ based on filters.")
 NodeJS HTTP parser.  It provides collection of framework independent HTTP
 protocol utils.")
     (license license:expat)))
+
+(define-public python-h11
+  (package
+    (name "python-h11")
+    (version "0.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "h11" version))
+       (sha256
+        (base32
+         "1qfad70h59hya21vrzz8dqyyaiqhac0anl2dx3s3k80gpskvrm1k"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (home-page "https://github.com/python-hyper/h11")
+    (synopsis
+     "Python implementation of HTTP/1.1")
+    (description
+     "@code{python-h11} is a little HTTP/1.1 library written from
+scratch in Python, heavily inspired by code{hyper-h2}.
+
+It's a \"bring-your-own-I/O\" library; @code{python-h11} contains no
+IO code whatsoever.  This means you can hook @code{python-h11} up to
+your favorite network API: synchronous, threaded, asynchronous, or your
+own implementation of RFC 6214.")
+    (license license:expat)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 11/26] gnu: Add python-hpack.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (8 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 10/26] gnu: Add python-h11 Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 12/26] gnu: Add python-hyperframe Giacomo Leidi
                     ` (14 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-web.scm (python-hpack): New variable.
---
 gnu/packages/python-web.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index dcfe523912..4810a10834 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4123,3 +4123,22 @@ IO code whatsoever.  This means you can hook @code{python-h11} up to
 your favorite network API: synchronous, threaded, asynchronous, or your
 own implementation of RFC 6214.")
     (license license:expat)))
+
+(define-public python-hpack
+  (package
+    (name "python-hpack")
+    (version "3.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "hpack" version))
+       (sha256
+        (base32
+         "1lp9ja4dk6jg0pm2d18kvh95k9p6yxhh4l1h7y541qzs9cgrrv4f"))))
+    (build-system python-build-system)
+    (home-page "http://hyper.rtfd.org")
+    (synopsis "HTTP/2 Header Encoding for Python")
+    (description
+     "@code{python-hpack} contains a pure-Python HTTP/2 header encoding
+(HPACK) logic for use in Python programs that implement HTTP/2.")
+    (license license:expat)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 12/26] gnu: Add python-hyperframe.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (9 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 11/26] gnu: Add python-hpack Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 13/26] gnu: Add python-h2 Giacomo Leidi
                     ` (13 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-web.scm (python-hyperframe): New variable.
---
 gnu/packages/python-web.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 4810a10834..db53ec8471 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4142,3 +4142,23 @@ own implementation of RFC 6214.")
      "@code{python-hpack} contains a pure-Python HTTP/2 header encoding
 (HPACK) logic for use in Python programs that implement HTTP/2.")
     (license license:expat)))
+
+(define-public python-hyperframe
+  (package
+    (name "python-hyperframe")
+    (version "5.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "hyperframe" version))
+       (sha256
+        (base32
+         "07xlf44l1cw0ghxx46sbmkgzil8vqv8kxwy42ywikiy35izw3xd9"))))
+    (build-system python-build-system)
+    (home-page
+     "https://python-hyper.org/hyperframe/en/latest/")
+    (synopsis "HTTP/2 framing layer for Python")
+    (description "@code{python-hyperframe} library contains the HTTP/2
+framing code used in the @code{hyper} project.  It provides a pure-Python
+codebase that is capable of decoding a binary stream into HTTP/2 frames.")
+    (license license:expat)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 13/26] gnu: Add python-h2.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (10 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 12/26] gnu: Add python-hyperframe Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 14/26] gnu: Add python-hstspreload Giacomo Leidi
                     ` (12 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-web.scm (python-h2): New variable.
---
 gnu/packages/python-web.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index db53ec8471..d658de9aee 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4162,3 +4162,26 @@ own implementation of RFC 6214.")
 framing code used in the @code{hyper} project.  It provides a pure-Python
 codebase that is capable of decoding a binary stream into HTTP/2 frames.")
     (license license:expat)))
+
+(define-public python-h2
+  (package
+    (name "python-h2")
+    (version "3.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "h2" version))
+       (sha256
+        (base32
+         "051gg30aca26rdxsmr9svwqm06pdz9bv21ch4n0lgi7jsvml2pw7"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-hpack" ,python-hpack)
+       ("python-hyperframe" ,python-hyperframe)))
+    (home-page
+     "https://github.com/python-hyper/hyper-h2")
+    (synopsis
+     "HTTP/2 State-Machine based protocol implementation")
+    (description
+     "@code{python-h2} is a Python implementation of a HTTP/2 protocol stack.")
+    (license license:expat)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 14/26] gnu: Add python-hstspreload.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (11 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 13/26] gnu: Add python-h2 Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 15/26] gnu: Add python-mypy-extensions Giacomo Leidi
                     ` (11 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* 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 d658de9aee..d40dad2e00 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4185,3 +4185,24 @@ codebase that is capable of decoding a binary stream into HTTP/2 frames.")
     (description
      "@code{python-h2} is a Python implementation of a HTTP/2 protocol stack.")
     (license license:expat)))
+
+(define-public python-hstspreload
+  (package
+    (name "python-hstspreload")
+    (version "2020.5.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "hstspreload" version))
+       (sha256
+        (base32
+         "148zkdjqkhmdm3wwffpbgq8nvcnvpgrgrmgih63j14lb822374i6"))))
+    (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)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 15/26] gnu: Add python-mypy-extensions.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (12 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 14/26] gnu: Add python-hstspreload Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 16/26] gnu: Add python-flake8-pyi Giacomo Leidi
                     ` (10 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* 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 46b60ee98b..66fb284eec 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20307,3 +20307,25 @@ permissively licensed, async/await-native I/O library for Python.")
     (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)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 16/26] gnu: Add python-flake8-pyi.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (13 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 15/26] gnu: Add python-mypy-extensions Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 17/26] gnu: Add python-typing-inspect Giacomo Leidi
                     ` (9 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm (python-flake8-pyi): 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 66fb284eec..7c78a6e4be 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20329,3 +20329,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-flake8-pyi
+  (package
+    (name "python-flake8-pyi")
+    (version "20.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "flake8-pyi" version))
+       (sha256
+        (base32
+         "1zpq4s9kp8w95pccmhhyyx1ff2zhnidcf1zb3xs46lzcx9plvnzk"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-attrs" ,python-attrs)
+       ("python-flake8" ,python-flake8)
+       ("python-pyflakes" ,python-pyflakes)))
+    (home-page "https://github.com/ambv/flake8-pyi")
+    (synopsis
+     "Flake8 plugin to enable linting .pyi files")
+    (description
+     "@{python-flake8-pyi} is a plugin for Flake8 that provides specializations
+for type hinting stub files, especially interesting for linting @code{typeshed}.")
+    (license license:expat)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 17/26] gnu: Add python-typing-inspect.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (14 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 16/26] gnu: Add python-flake8-pyi Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 18/26] gnu: python-typing-extensions: Update to 3.7.4.2 Giacomo Leidi
                     ` (8 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm (python-typing-inspect): New variable.
---
 gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7c78a6e4be..d6edc33579 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20353,3 +20353,32 @@ to the standard @code{typing} module that are supported by the
      "@{python-flake8-pyi} is a plugin for Flake8 that provides specializations
 for type hinting stub files, especially interesting for linting @code{typeshed}.")
     (license license:expat)))
+
+(define-public python-typing-inspect
+  (package
+    (name "python-typing-inspect")
+    (version "0.6.0")
+    (source
+     (origin
+       ;; There seems to be no source tarball on PyPI.
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ilevkivskyi/typing_inspect.git")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1f612wf0pfwknnrjvnsap08blh706zp0a1lc7gslqyh5vwg7rc5j"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-mypy-extensions"
+        ,python-mypy-extensions)
+       ("python-typing-extensions"
+        ,python-typing-extensions)))
+    (home-page
+     "https://github.com/ilevkivskyi/typing_inspect")
+    (synopsis
+     "Runtime inspection utilities for typing module")
+    (description
+     "The @code{typing_inspect} module defines experimental API for
+runtime inspection of types defined in the Python standard typing module.")
+    (license license:expat)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 18/26] gnu: python-typing-extensions: Update to 3.7.4.2.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (15 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 17/26] gnu: Add python-typing-inspect Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 19/26] gnu: Add python-pyre-extensions Giacomo Leidi
                     ` (7 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm (python-typing-extensions): Update to 3.7.4.2.
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d6edc33579..e23d853809 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16248,14 +16248,14 @@ and other tools.")
 (define-public python-typing-extensions
   (package
     (name "python-typing-extensions")
-    (version "3.7.4.1")
+    (version "3.7.4.2")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "typing_extensions" version))
        (sha256
         (base32
-         "1wj1vcgbnm20aiinmphyxfrbv3qi9xdhvw89ab3qm42y9n4wq7h9"))))
+         "1bk9b60s3rm1c8cwhv0bl3gh0x43153xxa6jpyllk9mc7jd5ivkr"))))
     (build-system python-build-system)
     (home-page
      "https://github.com/python/typing/blob/master/typing_extensions/README.rst")
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 19/26] gnu: Add python-pyre-extensions.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (16 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 18/26] gnu: python-typing-extensions: Update to 3.7.4.2 Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 20/26] gnu: Add python-nbsphinx Giacomo Leidi
                     ` (6 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* 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 e23d853809..d05e336ea7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20382,3 +20382,27 @@ for type hinting stub files, especially interesting for linting @code{typeshed}.
      "The @code{typing_inspect} module defines experimental API for
 runtime inspection of types defined in the Python standard typing module.")
     (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)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 20/26] gnu: Add python-nbsphinx.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (17 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 19/26] gnu: Add python-pyre-extensions Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 21/26] gnu: Add python-dataclasses Giacomo Leidi
                     ` (5 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/sphinx.scm (python-nbsphinx): New variable.
---
 gnu/packages/sphinx.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index f27f9d0176..27d3cb45b2 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -643,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.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "nbsphinx" version))
+        (sha256
+          (base32
+            "1ks6f4ni5gavmyq2jrycnwyzw4i7jfp9xggzgx1fsbzizw45am3p"))))
+    (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)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 21/26] gnu: Add python-dataclasses.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (18 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 20/26] gnu: Add python-nbsphinx Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 22/26] gnu: Add python-libcst Giacomo Leidi
                     ` (4 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* 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 d05e336ea7..6cff8a0263 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20406,3 +20406,24 @@ runtime inspection of types defined in the Python standard typing module.")
       "@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)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 22/26] gnu: Add python-libcst.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (19 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 21/26] gnu: Add python-dataclasses Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 23/26] gnu: Add python-pywatchman Giacomo Leidi
                     ` (3 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm (python-libcst): New variable.
---
 gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6cff8a0263..85b71763ae 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20427,3 +20427,34 @@ runtime inspection of types defined in the Python standard typing module.")
       "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-libcst
+  (package
+    (name "python-libcst")
+    (version "0.3.6")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "libcst" version))
+        (sha256
+          (base32
+            "1lxwjw3a302i0ka3ykcsc1r4c94zskzlgn3rqs2h0kmchp0g74qz"))))
+    (build-system python-build-system)
+    (arguments
+     ;; FIXME: Tests depend on python-hypothesmith and python-pyre-check,
+     ;; introducing a circular dependency.
+     '(#:tests? #f))
+    (propagated-inputs
+      `(("python-dataclasses" ,python-dataclasses)
+        ("python-pyyaml" ,python-pyyaml)
+        ("python-typing-extensions"
+         ,python-typing-extensions)
+        ("python-typing-inspect" ,python-typing-inspect)))
+    (home-page "https://github.com/Instagram/LibCST")
+    (synopsis
+      "Concrete Syntax Tree (CST) parser and serializer library for Python")
+    (description
+      "LibCST parses Python 3.0, 3.1, 3.3, 3.5, 3.6, 3.7 or 3.8 source code
+as a CST tree that keeps all formatting details (comments, whitespaces, parentheses,
+etc.).  It's useful for building automated refactoring applications and linters.")
+    (license license:expat)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 23/26] gnu: Add python-pywatchman.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (20 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 22/26] gnu: Add python-libcst Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 24/26] gnu: Add python-httpx Giacomo Leidi
                     ` (2 subsequent siblings)
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* 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 85b71763ae..a8a32cb550 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20458,3 +20458,24 @@ backport of the @code{dataclasses} module for Python 3.6.")
 as a CST tree that keeps all formatting details (comments, whitespaces, parentheses,
 etc.).  It's useful for building automated refactoring applications and linters.")
     (license license:expat)))
+
+(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)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 24/26] gnu: Add python-httpx.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (21 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 23/26] gnu: Add python-pywatchman Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 25/26] gnu: Add python-uvloop Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 26/26] gnu: Add python-sanic Giacomo Leidi
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-web.scm (python-httpx): New variable.
---
 gnu/packages/python-web.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d40dad2e00..daaf4a8934 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4206,3 +4206,31 @@ codebase that is capable of decoding a binary stream into HTTP/2 frames.")
      "@code{python-hstspreload} contains Chromium HSTS Preload list
 as a Python package.")
     (license license:bsd-3)))
+
+(define-public python-httpx
+  (package
+    (name "python-httpx")
+    (version "0.13.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "httpx" version))
+       (sha256
+        (base32
+         "1bpg46mx8n74hxmw2pvgr5pc590hxdsh4wrs4j5bm00bx49vshin"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-certifi" ,python-certifi)
+       ("python-chardet" ,python-chardet)
+       ("python-h11" ,python-h11)
+       ("python-h2" ,python-h2)
+       ("python-hstspreload" ,python-hstspreload)
+       ("python-idna" ,python-idna)
+       ("python-rfc3986" ,python-rfc3986)
+       ("python-sniffio" ,python-sniffio)
+       ("python-urllib3" ,python-urllib3)))
+    (home-page "https://github.com/encode/httpx")
+    (synopsis "HTTP client for Python")
+    (description "HTTPX is a fully featured HTTP client for Python 3,
+which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.")
+    (license license:bsd-3)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 25/26] gnu: Add python-uvloop.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (22 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 24/26] gnu: Add python-httpx Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  2020-06-11 15:13   ` [bug#41807] [PATCH 26/26] gnu: Add python-sanic Giacomo Leidi
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-xyz.scm (python-uvloop): New variable.
---
 gnu/packages/python-xyz.scm | 55 +++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a8a32cb550..639e6a920f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20479,3 +20479,58 @@ etc.).  It's useful for building automated refactoring applications and linters.
     (description "@code{python-pywatchman} is a library to connect and
 query Watchman to discover file changes.")
     (license license:bsd-3)))
+
+(define-public python-uvloop
+  (package
+    (name "python-uvloop")
+    (version "0.14.0")
+    (source
+     (origin
+       (method git-fetch)
+       ;; git-reference because libuv is bundled in the PyPi package
+       (uri (git-reference
+             (url "https://github.com/MagicStack/uvloop.git")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0cvfaddk9195ai29y8nxf92fi71nypx3fhx219q3pammjnh9z861"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; Unbundle libuv.
+           (substitute* "MANIFEST.in"
+             (("recursive-include vendor/libuv.*") "")
+             (("recursive-exclude vendor/libuv.*") ""))
+           (delete-file-recursively "vendor")
+           #t))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'build
+           (lambda _
+             (invoke "python" "setup.py"
+                     "build_ext" "--inplace"
+                     "--cython-always" "--use-system-libuv")))
+         (replace 'install
+           (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (invoke "python" "setup.py" "install"
+                       (string-append "--prefix=" out)
+                       "--single-version-externally-managed"
+                       "--root=/" "--skip-build"))))
+         ;; Tests depend on libuv being present in-tree.
+         (delete 'check))))
+    (inputs
+     `(("libuv" ,libuv)))
+    (native-inputs
+     `(("python-cython" ,python-cython)))
+    (home-page "https://github.com/MagicStack/uvloop")
+    (synopsis
+     "Fast implementation of asyncio event loop on top of libuv")
+    (description
+     "@code{python-uvloop} is a fast, drop-in replacement of the
+built-in @code{asyncio} event loop.  @code{python-uvloop} is
+implemented in Cython and uses libuv under the hood.")
+    (license license:expat)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCH 26/26] gnu: Add python-sanic.
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
                     ` (23 preceding siblings ...)
  2020-06-11 15:13   ` [bug#41807] [PATCH 25/26] gnu: Add python-uvloop Giacomo Leidi
@ 2020-06-11 15:13   ` Giacomo Leidi
  24 siblings, 0 replies; 38+ messages in thread
From: Giacomo Leidi @ 2020-06-11 15:13 UTC (permalink / raw)
  To: 41807; +Cc: Giacomo Leidi

* gnu/packages/python-web.scm (python-sanic): New variable,
(python-httpx-0.11): 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 daaf4a8934..b7abe9fc17 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4234,3 +4234,52 @@ as a Python package.")
     (description "HTTPX is a fully featured HTTP client for Python 3,
 which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.")
     (license license:bsd-3)))
+
+;; This is only for python-sanic
+(define-public python-httpx-0.11
+  (package (inherit python-httpx)
+    (version "0.11.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "httpx" version))
+        (sha256
+          (base32
+           "1xrwlgnzm9x0d92s22ypli4cybwwv8idpp8m7naigmzfdrrgnavx"))))
+    (arguments
+     ;; FIXME: Tests can't import rfc3986.
+     `(#:tests? #f))))
+
+(define-public python-sanic
+  (package
+    (name "python-sanic")
+    (version "20.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sanic" version))
+       (sha256
+        (base32
+         "1zssckzjsa1qi2bxirn0dksszmfhsbrkakvfx3r080sdcph8y1xl"))))
+    (build-system python-build-system)
+    (arguments
+     ;; FIXME: Tests depend on httpcore.
+     `(#:tests? #f))
+    (propagated-inputs
+     `(("python-aiofiles" ,python-aiofiles)
+       ("python-httptools" ,python-httptools)
+       ("python-httpx" ,python-httpx-0.11)
+       ("python-multidict" ,python-multidict)
+       ("python-ujson" ,python-ujson)
+       ("python-uvloop" ,python-uvloop)
+       ("python-websockets" ,python-websockets)))
+    (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)))
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCHES] Add python-sanic and dependencies.
  2020-06-11 14:59 [bug#41807] [PATCHES] Add python-sanic and dependencies paul
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
@ 2020-06-11 20:41 ` paul
  2020-06-17  6:49 ` Lars-Dominik Braun
  2 siblings, 0 replies; 38+ messages in thread
From: paul @ 2020-06-11 20:41 UTC (permalink / raw)
  To: 41807

[-- Attachment #1: Type: text/plain, Size: 85 bytes --]

Hi I'm sending an updated version of patch 24 and patch 26.

Thanks again,

Giacomo


[-- Attachment #2: 0024-gnu-Add-python-httpx.patch --]
[-- Type: text/x-patch, Size: 1861 bytes --]

From 121ffb5b3f3c5e19d4a84270edcff6c89f788d3e Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Wed, 10 Jun 2020 18:08:03 +0200
Subject: [PATCH 24/26] gnu: Add python-httpx.

* gnu/packages/python-web.scm (python-httpx): New variable.
---
 gnu/packages/python-web.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d40dad2e00..3dd14e41ec 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4206,3 +4206,34 @@ codebase that is capable of decoding a binary stream into HTTP/2 frames.")
      "@code{python-hstspreload} contains Chromium HSTS Preload list
 as a Python package.")
     (license license:bsd-3)))
+
+(define-public python-httpx
+  (package
+    (name "python-httpx")
+    (version "0.13.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "httpx" version))
+       (sha256
+        (base32
+         "1bpg46mx8n74hxmw2pvgr5pc590hxdsh4wrs4j5bm00bx49vshin"))))
+    (build-system python-build-system)
+    (arguments
+     ;; FIXME: Tests depend on httpcore.
+     `(#:tests? #f))
+    (propagated-inputs
+     `(("python-certifi" ,python-certifi)
+       ("python-chardet" ,python-chardet)
+       ("python-h11" ,python-h11)
+       ("python-h2" ,python-h2)
+       ("python-hstspreload" ,python-hstspreload)
+       ("python-idna" ,python-idna)
+       ("python-rfc3986" ,python-rfc3986)
+       ("python-sniffio" ,python-sniffio)
+       ("python-urllib3" ,python-urllib3)))
+    (home-page "https://github.com/encode/httpx")
+    (synopsis "HTTP client for Python")
+    (description "HTTPX is a fully featured HTTP client for Python 3,
+which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.")
+    (license license:bsd-3)))
-- 
2.26.2


[-- Attachment #3: 0026-gnu-Add-python-sanic.patch --]
[-- Type: text/x-patch, Size: 2382 bytes --]

From b3a25e0bde18087fcbf769cdb5e604996b479829 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Thu, 11 Jun 2020 16:43:26 +0200
Subject: [PATCH 26/26] gnu: Add python-sanic.

* gnu/packages/python-web.scm (python-sanic): New variable,
(python-httpx-0.11): 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 3dd14e41ec..22b1b1299e 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4237,3 +4237,52 @@ as a Python package.")
     (description "HTTPX is a fully featured HTTP client for Python 3,
 which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.")
     (license license:bsd-3)))
+
+;; This is only for python-sanic
+(define-public python-httpx-0.11
+  (package (inherit python-httpx)
+    (version "0.11.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "httpx" version))
+        (sha256
+          (base32
+           "1xrwlgnzm9x0d92s22ypli4cybwwv8idpp8m7naigmzfdrrgnavx"))))
+    (arguments
+     ;; FIXME: Tests can't import rfc3986.
+     `(#:tests? #f))))
+
+(define-public python-sanic
+  (package
+    (name "python-sanic")
+    (version "20.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sanic" version))
+       (sha256
+        (base32
+         "1zssckzjsa1qi2bxirn0dksszmfhsbrkakvfx3r080sdcph8y1xl"))))
+    (build-system python-build-system)
+    (arguments
+     ;; FIXME: Tests depend on httpcore.
+     `(#:tests? #f))
+    (propagated-inputs
+     `(("python-aiofiles" ,python-aiofiles)
+       ("python-httptools" ,python-httptools)
+       ("python-httpx" ,python-httpx-0.11)
+       ("python-multidict" ,python-multidict)
+       ("python-ujson" ,python-ujson)
+       ("python-uvloop" ,python-uvloop)
+       ("python-websockets" ,python-websockets)))
+    (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)))
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCHES] Add python-sanic and dependencies.
  2020-06-11 14:59 [bug#41807] [PATCHES] Add python-sanic and dependencies paul
  2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
  2020-06-11 20:41 ` [bug#41807] [PATCHES] Add python-sanic and dependencies paul
@ 2020-06-17  6:49 ` Lars-Dominik Braun
  2020-06-17 13:34   ` paul
  2020-10-20 10:58   ` paul
  2 siblings, 2 replies; 38+ messages in thread
From: Lars-Dominik Braun @ 2020-06-17  6:49 UTC (permalink / raw)
  To: paul; +Cc: 41807

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

Hi,

> I'm sending a patch series to add python-sanic, its dependencies and some
> dependencies of mypy.
I’ve got Sanic 19.12 in my own channel[1], which I wanted to upstream for a
long time now. Most packages have tests enabled, because I managed to package
that really old httpcore. Do you want to try and port these to sanic 20.03?

Cheers,
Lars

[1] https://github.com/leibniz-psychology/guix-zpid/blob/master/zpid/packages/sanic.scm


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCHES] Add python-sanic and dependencies.
  2020-06-17  6:49 ` Lars-Dominik Braun
@ 2020-06-17 13:34   ` paul
  2020-10-20 10:58   ` paul
  1 sibling, 0 replies; 38+ messages in thread
From: paul @ 2020-06-17 13:34 UTC (permalink / raw)
  To: Lars-Dominik Braun; +Cc: 41807

Hi,

On 6/17/20 8:49 AM, Lars-Dominik Braun wrote:
> Hi,
>
>> I'm sending a patch series to add python-sanic, its dependencies and some
>> dependencies of mypy.
> I’ve got Sanic 19.12 in my own channel[1], which I wanted to upstream for a
> long time now. Most packages have tests enabled, because I managed to package
> that really old httpcore. Do you want to try and port these to sanic 20.03?
>
> Cheers,
> Lars
>
> [1] https://github.com/leibniz-psychology/guix-zpid/blob/master/zpid/packages/sanic.scm
>
Thank you for this!  Yes I'd like to integrate your packages, I'll do 
that this weekend I believe.

Cheers,

Giacomo






^ permalink raw reply	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCHES] Add python-sanic and dependencies.
  2020-06-17  6:49 ` Lars-Dominik Braun
  2020-06-17 13:34   ` paul
@ 2020-10-20 10:58   ` paul
  2020-11-13  8:59     ` Lars-Dominik Braun
  1 sibling, 1 reply; 38+ messages in thread
From: paul @ 2020-10-20 10:58 UTC (permalink / raw)
  To: Lars-Dominik Braun; +Cc: 41807

[-- Attachment #1: Type: text/plain, Size: 794 bytes --]

Hi :),

I apologize for the long delay,

On 6/17/20 8:49 AM, Lars-Dominik Braun wrote:
> Hi,
>
>> I'm sending a patch series to add python-sanic, its dependencies and some
>> dependencies of mypy.
> I’ve got Sanic 19.12 in my own channel[1], which I wanted to upstream for a
> long time now. Most packages have tests enabled, because I managed to package
> that really old httpcore. Do you want to try and port these to sanic 20.03?
>
> Cheers,
> Lars
>
> [1] https://github.com/leibniz-psychology/guix-zpid/blob/master/zpid/packages/sanic.scm
>

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.

Thank you for your patience,

Giacomo


[-- Attachment #2: 0001-gnu-Add-python-contextvars.patch --]
[-- Type: text/x-patch, Size: 1392 bytes --]

From 63cee61e501d34a234106e47594eec6ce2504c6b Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Mon, 8 Jun 2020 23:57:19 +0200
Subject: [PATCH 1/9] 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 575ce40ac8..cf20973cfc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22524,3 +22524,24 @@ applications with variable CPU loads).")
 
 (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)))
-- 
2.28.0


[-- Attachment #3: 0002-gnu-Add-python-aiofiles.patch --]
[-- Type: text/x-patch, Size: 1368 bytes --]

From 8f2fa7e0e72f2402b6d4b0970744973523575177 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Tue, 9 Jun 2020 17:40:32 +0200
Subject: [PATCH 2/9] 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 cf20973cfc..1d51128090 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22545,3 +22545,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)))
-- 
2.28.0


[-- Attachment #4: 0003-gnu-Add-python-hstspreload.patch --]
[-- Type: text/x-patch, Size: 1352 bytes --]

From 8cfe473e1995c45c15faecde6cc48a15ca8ccdd2 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Tue, 20 Oct 2020 12:37:54 +0200
Subject: [PATCH 3/9] 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 b8b7ce9d31..b0bbd66583 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5164,3 +5164,24 @@ Encoding for HTTP.")
      "This module acts as a webbrowser solving Cloudflare's Javascript
 challenges.")
     (license license:expat)))
+
+(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)))
-- 
2.28.0


[-- Attachment #5: 0004-gnu-Add-python-mypy-extensions.patch --]
[-- Type: text/x-patch, Size: 1481 bytes --]

From e19cceab869a67d876cbb807626b605f778cbc0f Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Tue, 9 Jun 2020 19:06:02 +0200
Subject: [PATCH 4/9] 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 1d51128090..82c3a21913 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22563,3 +22563,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)))
-- 
2.28.0


[-- Attachment #6: 0005-gnu-Add-python-pyre-extensions.patch --]
[-- Type: text/x-patch, Size: 1592 bytes --]

From dbe8aad933bf7d6bf2571df8b08d48be73d73c9e Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Wed, 10 Jun 2020 12:52:20 +0200
Subject: [PATCH 5/9] 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 82c3a21913..2e3c8b762c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22585,3 +22585,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)))
-- 
2.28.0


[-- Attachment #7: 0006-gnu-Add-python-nbsphinx.patch --]
[-- Type: text/x-patch, Size: 2232 bytes --]

From e432d180aef69ecec895dd9dcbd6a1a476c01184 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Tue, 20 Oct 2020 12:43:17 +0200
Subject: [PATCH 6/9] 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 f27f9d0176..439febc91b 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;; Copyright © 2019 Alexandros Theodotou <alex@zrythm.org>
 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
+;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -643,3 +644,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)))
-- 
2.28.0


[-- Attachment #8: 0007-gnu-Add-python-dataclasses.patch --]
[-- Type: text/x-patch, Size: 1500 bytes --]

From 69618814e8904ea0baf0515d664de11985525463 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Wed, 10 Jun 2020 17:00:25 +0200
Subject: [PATCH 7/9] 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 2e3c8b762c..32a7381402 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22609,3 +22609,24 @@ to the standard @code{typing} module that are supported 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)))
-- 
2.28.0


[-- Attachment #9: 0008-gnu-Add-python-pywatchman.patch --]
[-- Type: text/x-patch, Size: 1466 bytes --]

From 6265a08e96e310cac418bcebf16d259b46d85b95 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Wed, 10 Jun 2020 17:58:58 +0200
Subject: [PATCH 8/9] 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 32a7381402..df7587749a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22630,3 +22630,24 @@ to the standard @code{typing} module that are supported 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)))
-- 
2.28.0


[-- Attachment #10: 0009-gnu-Add-python-sanic.patch --]
[-- Type: text/x-patch, Size: 4710 bytes --]

From c19961406504ba9e90e836b30751f68f1d4820d9 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
Date: Tue, 20 Oct 2020 12:51:27 +0200
Subject: [PATCH 9/9] gnu: Add python-sanic.

* gnu/packages/python-check.scm (python-pytest-sanic): New variable.
* gnu/packages/python-web.scm (python-sanic): New variable.
---
 gnu/packages/python-check.scm | 28 +++++++++++++++++
 gnu/packages/python-web.scm   | 59 +++++++++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 498f495584..caab81f18c 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1044,3 +1044,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)))
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b0bbd66583..5aaf9fb03d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -39,6 +39,7 @@
 ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
 ;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
+;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5185,3 +5186,61 @@ challenges.")
      "@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.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sanic" version))
+       (sha256
+        (base32
+         "0h832ja7j1f2w0ylbx5vj0j5gv5j9gn1yhhspvq0yikjyrkg46yr"))))
+    (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==0.3.0") "httpcore")
+               (("pytest==5.2.1") "pytest"))
+             #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)))
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCHES] Add python-sanic and dependencies.
  2020-10-20 10:58   ` paul
@ 2020-11-13  8:59     ` Lars-Dominik Braun
  2020-11-30 23:25       ` paul
  2020-12-15  7:04       ` bug#41807: " Leo Famulari
  0 siblings, 2 replies; 38+ messages in thread
From: Lars-Dominik Braun @ 2020-11-13  8:59 UTC (permalink / raw)
  To: paul; +Cc: 41807


[-- Attachment #1.1: Type: text/plain, Size: 741 bytes --]

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’ve tested the patches with a real application and made some minor
modifications pointed out by `guix lint`. Also python-sanic requests
multidict==5.0.0, which we don’t have right now. But it seems to work with
4.7.5 just fine.

Cheers,
Lars

-- 
Lars-Dominik Braun
Wissenschaftlicher Mitarbeiter/Research Associate

www.leibniz-psychology.org
ZPID - Leibniz-Institut für Psychologie /
ZPID - Leibniz Institute for Psychology
Universitätsring 15
D-54296 Trier - Germany
Tel.: +49–651–201-4964

[-- Attachment #1.2: 0001-gnu-Add-python-contextvars.patch --]
[-- Type: text/x-diff, Size: 1436 bytes --]

From a9d80c2beee8dfcff1a5c8b23a1acdcab89b267b Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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).")
 
 (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)))
-- 
2.26.2


[-- Attachment #1.3: 0002-gnu-Add-python-aiofiles.patch --]
[-- Type: text/x-diff, Size: 1409 bytes --]

From cd1d8c98637f43c386d51a74e2508ac25ae4b2e0 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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)))
-- 
2.26.2


[-- Attachment #1.4: 0003-gnu-Add-python-hstspreload.patch --]
[-- Type: text/x-diff, Size: 1406 bytes --]

From dda0406a4e36565ef241003104cb54c552df5577 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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, delete, 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)))
-- 
2.26.2


[-- Attachment #1.5: 0004-gnu-Add-python-mypy-extensions.patch --]
[-- Type: text/x-diff, Size: 1526 bytes --]

From c835de22832e8c7fb33cf6eec1aa0afb029253ca Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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)))
-- 
2.26.2


[-- Attachment #1.6: 0005-gnu-Add-python-pyre-extensions.patch --]
[-- Type: text/x-diff, Size: 1639 bytes --]

From 1f021271add8115a03f1645d5e02c6a664360225 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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)))
-- 
2.26.2


[-- Attachment #1.7: 0006-gnu-Add-python-nbsphinx.patch --]
[-- Type: text/x-diff, Size: 2288 bytes --]

From 22e6e518b43feab5082618de8c53f72fab1b90ca Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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 © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;; Copyright © 2019 Alexandros Theodotou <alex@zrythm.org>
 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
+;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; 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)))
-- 
2.26.2


[-- Attachment #1.8: 0007-gnu-Add-python-dataclasses.patch --]
[-- Type: text/x-diff, Size: 1545 bytes --]

From 4c17f3615e43e5cbeae80898a649535232923aea Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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 supported 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)))
-- 
2.26.2


[-- Attachment #1.9: 0008-gnu-Add-python-pywatchman.patch --]
[-- Type: text/x-diff, Size: 1511 bytes --]

From a726b42ccf10f8ee08ff5fab5049990d3a0080c8 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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 supported 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)))
-- 
2.26.2


[-- Attachment #1.10: 0009-gnu-Add-python-pytest-sanic.patch --]
[-- Type: text/x-diff, Size: 1741 bytes --]

From fe0fe1a37494f1894e2425dad2a239c557cf9925 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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)))
-- 
2.26.2


[-- Attachment #1.11: 0010-gnu-Add-python-sanic.patch --]
[-- Type: text/x-diff, Size: 3425 bytes --]

From 34bba96451cb29cb38706d04f7703301b1ae7dd7 Mon Sep 17 00:00:00 2001
From: Giacomo Leidi <goodoldpaul@autistici.org>
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 © 2020 Edouard Klein <edk@beaver-labs.com>
 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
 ;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
+;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; 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==0.3.0") "httpcore")
+               (("pytest==5.2.1") "pytest")
+               (("multidict==5.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)))
-- 
2.26.2


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCHES] Add python-sanic and dependencies.
  2020-11-13  8:59     ` Lars-Dominik Braun
@ 2020-11-30 23:25       ` paul
  2020-12-01  7:16         ` Lars-Dominik Braun
  2020-12-15  7:04       ` bug#41807: " Leo Famulari
  1 sibling, 1 reply; 38+ messages in thread
From: paul @ 2020-11-30 23:25 UTC (permalink / raw)
  To: Lars-Dominik Braun; +Cc: 41807

Dear Lars,

Thank you for your extensive review and your time. Should I send an 
update patch set or are you going to push the patches with your fixes?

Cheers,

Giacomo





^ permalink raw reply	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCHES] Add python-sanic and dependencies.
  2020-11-30 23:25       ` paul
@ 2020-12-01  7:16         ` Lars-Dominik Braun
  0 siblings, 0 replies; 38+ messages in thread
From: Lars-Dominik Braun @ 2020-12-01  7:16 UTC (permalink / raw)
  To: paul; +Cc: 41807

[-- Attachment #1: Type: text/plain, Size: 565 bytes --]

Hi,

> Thank you for your extensive review and your time. Should I send an update
> patch set or are you going to push the patches with your fixes?
actually I’m just a normal contributor like you without commit access. We’ll
have to wait for a maintainer to pick it up.

Cheers,
Lars

-- 
Lars-Dominik Braun
Wissenschaftlicher Mitarbeiter/Research Associate

www.leibniz-psychology.org
ZPID - Leibniz-Institut für Psychologie /
ZPID - Leibniz Institute for Psychology
Universitätsring 15
D-54296 Trier - Germany
Tel.: +49–651–201-4964

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* bug#41807: [PATCHES] Add python-sanic and dependencies.
  2020-11-13  8:59     ` Lars-Dominik Braun
  2020-11-30 23:25       ` paul
@ 2020-12-15  7:04       ` Leo Famulari
  2020-12-15  8:56         ` [bug#41807] " Lars-Dominik Braun
  1 sibling, 1 reply; 38+ messages in thread
From: Leo Famulari @ 2020-12-15  7:04 UTC (permalink / raw)
  To: Lars-Dominik Braun; +Cc: 41807-done, paul

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]

On Fri, Nov 13, 2020 at 09:59:14AM +0100, Lars-Dominik Braun wrote:
> 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’ve tested the patches with a real application and made some minor
> modifications pointed out by `guix lint`. Also python-sanic requests
> multidict==5.0.0, which we don’t have right now. But it seems to work with
> 4.7.5 just fine.

Thanks for the patches Giacomo and Lars-Dominik!

Pushed as e779dc8be048a85fa0e51013b1aed46082284937

`guix lint` reported that a few packages have newer versions available.
Can you take a look?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCHES] Add python-sanic and dependencies.
  2020-12-15  7:04       ` bug#41807: " Leo Famulari
@ 2020-12-15  8:56         ` Lars-Dominik Braun
  2020-12-15 19:23           ` Leo Famulari
  0 siblings, 1 reply; 38+ messages in thread
From: Lars-Dominik Braun @ 2020-12-15  8:56 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 41807-done

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

Hi Leo,

> Thanks for the patches Giacomo and Lars-Dominik!
> 
> Pushed as e779dc8be048a85fa0e51013b1aed46082284937
> 
> `guix lint` reported that a few packages have newer versions available.
> Can you take a look?
python-mypy-extensions already exists in python-check.scm and is causing a
conflict now.

Cheers,
Lars


-- 
Lars-Dominik Braun
Wissenschaftlicher Mitarbeiter/Research Associate

www.leibniz-psychology.org
ZPID - Leibniz-Institut für Psychologie /
ZPID - Leibniz Institute for Psychology
Universitätsring 15
D-54296 Trier - Germany
Tel.: +49–651–201-4964

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCHES] Add python-sanic and dependencies.
  2020-12-15  8:56         ` [bug#41807] " Lars-Dominik Braun
@ 2020-12-15 19:23           ` Leo Famulari
  2020-12-16  7:15             ` Lars-Dominik Braun
  0 siblings, 1 reply; 38+ messages in thread
From: Leo Famulari @ 2020-12-15 19:23 UTC (permalink / raw)
  To: Lars-Dominik Braun; +Cc: 41807-done

On Tue, Dec 15, 2020 at 09:56:29AM +0100, Lars-Dominik Braun wrote:
> python-mypy-extensions already exists in python-check.scm and is causing a
> conflict now.

Can you clarify what sort of conflict you are describing? I noticed that
we already have a python-mypy-extensions package, and so I omitted the
one from this patch series.




^ permalink raw reply	[flat|nested] 38+ messages in thread

* [bug#41807] [PATCHES] Add python-sanic and dependencies.
  2020-12-15 19:23           ` Leo Famulari
@ 2020-12-16  7:15             ` Lars-Dominik Braun
  0 siblings, 0 replies; 38+ messages in thread
From: Lars-Dominik Braun @ 2020-12-16  7:15 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 41807-done

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

Hi Leo,

> > python-mypy-extensions already exists in python-check.scm and is causing a
> > conflict now.
> 
> Can you clarify what sort of conflict you are describing? I noticed that
> we already have a python-mypy-extensions package, and so I omitted the
> one from this patch series.
sorry, my bad. Looks like `git worktree add` served me my own old sanic branch
instead of forking master.

Cheers,
Lars

-- 
Lars-Dominik Braun
Wissenschaftlicher Mitarbeiter/Research Associate

www.leibniz-psychology.org
ZPID - Leibniz-Institut für Psychologie /
ZPID - Leibniz Institute for Psychology
Universitätsring 15
D-54296 Trier - Germany
Tel.: +49–651–201-4964

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2020-12-16  7:16 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-11 14:59 [bug#41807] [PATCHES] Add python-sanic and dependencies paul
2020-06-11 15:13 ` [bug#41807] [PATCH 01/26] gnu: Add python-outcome Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 02/26] gnu: Add python-immutables Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 03/26] gnu: Add python-contextvars Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 04/26] gnu: Add python-curio Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 05/26] gnu: Add python-sniffio Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 06/26] gnu: Add python-trustme Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 07/26] gnu: Add python-trio Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 08/26] gnu: Add python-httptools Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 09/26] gnu: Add python-aiofiles Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 10/26] gnu: Add python-h11 Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 11/26] gnu: Add python-hpack Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 12/26] gnu: Add python-hyperframe Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 13/26] gnu: Add python-h2 Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 14/26] gnu: Add python-hstspreload Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 15/26] gnu: Add python-mypy-extensions Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 16/26] gnu: Add python-flake8-pyi Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 17/26] gnu: Add python-typing-inspect Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 18/26] gnu: python-typing-extensions: Update to 3.7.4.2 Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 19/26] gnu: Add python-pyre-extensions Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 20/26] gnu: Add python-nbsphinx Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 21/26] gnu: Add python-dataclasses Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 22/26] gnu: Add python-libcst Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 23/26] gnu: Add python-pywatchman Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 24/26] gnu: Add python-httpx Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 25/26] gnu: Add python-uvloop Giacomo Leidi
2020-06-11 15:13   ` [bug#41807] [PATCH 26/26] gnu: Add python-sanic Giacomo Leidi
2020-06-11 20:41 ` [bug#41807] [PATCHES] Add python-sanic and dependencies paul
2020-06-17  6:49 ` Lars-Dominik Braun
2020-06-17 13:34   ` paul
2020-10-20 10:58   ` paul
2020-11-13  8:59     ` Lars-Dominik Braun
2020-11-30 23:25       ` paul
2020-12-01  7:16         ` Lars-Dominik Braun
2020-12-15  7:04       ` bug#41807: " Leo Famulari
2020-12-15  8:56         ` [bug#41807] " Lars-Dominik Braun
2020-12-15 19:23           ` Leo Famulari
2020-12-16  7:15             ` Lars-Dominik Braun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).