* [bug#55831] [PATCH] gnu: Add python-starlette.
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
@ 2022-06-07 14:35 ` peter
2022-06-07 16:45 ` [bug#55831] [PATCH] Add extra dependencies to python-starlette peter
` (9 subsequent siblings)
10 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-07 14:35 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-web.scm (python-starlette): New variable.
---
gnu/packages/python-web.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 06a0d2593b..874ef73093 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1200,6 +1200,24 @@ (define-public python-h2
Python HTTP implementation.")
(license license:expat)))
+(define-public python-starlette
+ (package
+ (name "python-starlette")
+ (version "0.20.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "starlette" version))
+ (sha256
+ (base32
+ "1si8plb5lgwkcaqzccrrisiksdrxldq94kij73i0mizn7l42g0nx"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-anyio python-typing-extensions))
+ (home-page "https://github.com/encode/starlette")
+ (synopsis "Lightweight ASGI framework for building async web services in Python")
+ (description "This package is a lightweight Asynchronous Server Gateway Interface for
+building async web services in Python.")
+ (license license:bsd-3)))
+
(define-public python-sockjs-tornado
(package
(name "python-sockjs-tornado")
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH] Add extra dependencies to python-starlette
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
2022-06-07 14:35 ` [bug#55831] [PATCH] gnu: Add python-starlette peter
@ 2022-06-07 16:45 ` peter
2022-06-07 17:08 ` [bug#55831] [PATCH] gnu: python-h11: Update to 0.13.0 peter
` (8 subsequent siblings)
10 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-07 16:45 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
---
gnu/packages/python-web.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 874ef73093..9a3a11c7d1 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1211,7 +1211,13 @@ (define-public python-starlette
(base32
"1si8plb5lgwkcaqzccrrisiksdrxldq94kij73i0mizn7l42g0nx"))))
(build-system python-build-system)
- (propagated-inputs (list python-anyio python-typing-extensions))
+ (propagated-inputs (list python-anyio
+ python-typing-extensions
+ python-itsdangerous
+ python-jinja2
+ python-multipart
+ python-pyyaml
+ python-requests))
(home-page "https://github.com/encode/starlette")
(synopsis "Lightweight ASGI framework for building async web services in Python")
(description "This package is a lightweight Asynchronous Server Gateway Interface for
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH] gnu: python-h11: Update to 0.13.0.
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
2022-06-07 14:35 ` [bug#55831] [PATCH] gnu: Add python-starlette peter
2022-06-07 16:45 ` [bug#55831] [PATCH] Add extra dependencies to python-starlette peter
@ 2022-06-07 17:08 ` peter
2022-06-07 17:13 ` [bug#55831] [PATCH] gnu: python-wsproto: Update to 1.1.0 peter
` (7 subsequent siblings)
10 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-07 17:08 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-web.scm (python-h11): Update to 0.13.0.
---
gnu/packages/python-web.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 9a3a11c7d1..7486d6d08c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1141,13 +1141,13 @@ (define-public python-hpack
(define-public python-h11
(package
(name "python-h11")
- (version "0.12.0")
+ (version "0.13.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "h11" version))
(sha256
- (base32 "0hk0nll6qazsambp3kl8cxxsbl4gv5y9252qadyk0jky0sv2q8j7"))))
+ (base32 "01pzawwhr537ypm966hli0hspzw104d0xk1q9n528yh86l8kr0bh"))))
(build-system python-build-system)
(arguments
`(#:phases
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH] gnu: python-wsproto: Update to 1.1.0.
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
` (2 preceding siblings ...)
2022-06-07 17:08 ` [bug#55831] [PATCH] gnu: python-h11: Update to 0.13.0 peter
@ 2022-06-07 17:13 ` peter
2022-06-07 20:09 ` [bug#55831] [PATCH] gnu: python-httpcore and python-httpx: Update to 0.15.0 and 0.23.0 peter
` (6 subsequent siblings)
10 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-07 17:13 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-web.scm (python-wsproto): Update to 1.1.0.
---
gnu/packages/python-web.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 7486d6d08c..58bdac622a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1935,13 +1935,13 @@ (define-public python-priority
(define-public python-wsproto
(package
(name "python-wsproto")
- (version "0.15.0")
+ (version "1.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "wsproto" version))
(sha256
- (base32 "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1"))))
+ (base32 "1a5x27qyrq0n4vk6ca47fj5pjdvdrpn5yfyqd49krn3wbkynprd2"))))
(build-system python-build-system)
(arguments
`(#:phases
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH] gnu: python-httpcore and python-httpx: Update to 0.15.0 and 0.23.0
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
` (3 preceding siblings ...)
2022-06-07 17:13 ` [bug#55831] [PATCH] gnu: python-wsproto: Update to 1.1.0 peter
@ 2022-06-07 20:09 ` peter
2022-06-07 20:26 ` [bug#55831] [PATCH] gnu: python-sanic-testing: Update requirements peter
` (5 subsequent siblings)
10 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-07 20:09 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
These packages seem to have cyclic dependencies on each other so they may need
to be updated together.
* gnu/packages/python-web.scm (python-httpcore): Update to 0.15.0.
---
gnu/packages/python-web.scm | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 58bdac622a..22c09af1ed 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5317,7 +5317,7 @@ (define-public python-vf-1
(define-public python-httpcore
(package
(name "python-httpcore")
- (version "0.14.7")
+ (version "0.15.0")
(source
(origin
;; PyPI tarball does not contain tests.
@@ -5327,15 +5327,20 @@ (define-public python-httpcore
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0wdr28vf03l6yxhk8nrvhh7y7x18rqdcfzv1sb6jgzk9zmycrvc7"))))
+ (base32 "0skj8f85l52gl6x449wzaixcwsyayvn59iwn0df4b7ixlz6xhp8l"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-requirements
+ (lambda _
+ (substitute* "setup.py"
+ (("h11>=0\\.11,<0\\.13") "h11"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- (invoke "pytest" "-vv" "tests")))))))
+ (invoke "pytest" "-vv" "tests"
+ "-o""asyncio_mode=auto")))))))
(native-inputs
(list python-pytest
python-pytest-asyncio
@@ -5376,13 +5381,17 @@ (define-public python-httpcore-bootstrap
(hidden-package
(package/inherit python-httpcore
(name "python-httpcore-bootstrap")
- (arguments (list #:tests? #f))
+ (arguments
+ '(#:tests? #f
+ ;; sanity check fails when arguments overridden
+ #:phases (modify-phases %standard-phases
+ (delete 'sanity-check))))
(native-inputs '()))))
(define-public python-httpx
(package
(name "python-httpx")
- (version "0.22.0")
+ (version "0.23.0")
(source
(origin
;; PyPI tarball does not contain tests.
@@ -5392,7 +5401,7 @@ (define-public python-httpx
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1awr56488b66zyl3cx1f03lq2n07xdg5kb4l46vnsm59s6hr02c5"))))
+ (base32 "0bihm7ylq9ajxz8qyba0xp9qkwm7n06hk01ywkq2vpz65ix5hpdk"))))
(build-system python-build-system)
(arguments
`(#:phases
@@ -5478,7 +5487,11 @@ (define-public python-httpx-bootstrap
(hidden-package
(package/inherit python-httpx
(name "python-httpx-bootstrap")
- (arguments (list #:tests? #f))
+ (arguments
+ '(#:tests? #f
+ ;; sanity check fails when arguments overridden
+ #:phases (modify-phases %standard-phases
+ (delete 'sanity-check))))
(native-inputs '())
(propagated-inputs
(modify-inputs (package-propagated-inputs python-httpx)
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH] gnu: python-sanic-testing: Update requirements.
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
` (4 preceding siblings ...)
2022-06-07 20:09 ` [bug#55831] [PATCH] gnu: python-httpcore and python-httpx: Update to 0.15.0 and 0.23.0 peter
@ 2022-06-07 20:26 ` peter
2022-06-07 20:35 ` [bug#55831] [PATCH] gnu: python-aiofiles: Update to 0.8.0 peter
` (4 subsequent siblings)
10 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-07 20:26 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-web.scm (): Update to .
---
gnu/packages/python-web.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 22c09af1ed..afa5473969 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -6362,7 +6362,13 @@ (define-public python-sanic-testing
(arguments
;; PyPi sources does not contain tests, recursive dependency on
;; python-sanic.
- (list #:tests? #f))
+ '(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-requirements
+ (lambda _
+ (substitute* "setup.py"
+ (("httpx>=0\\.18,<0\\.23") "httpx")))))))
(propagated-inputs (list python-httpx python-sanic-bootstrap
python-websockets))
(home-page "https://github.com/sanic-org/sanic-testing/")
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH] gnu: python-aiofiles: Update to 0.8.0.
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
` (5 preceding siblings ...)
2022-06-07 20:26 ` [bug#55831] [PATCH] gnu: python-sanic-testing: Update requirements peter
@ 2022-06-07 20:35 ` peter
2022-06-07 21:02 ` [bug#55831] [PATCH] gnu: python-semantic-version: Update to 2.10.0 peter
` (3 subsequent siblings)
10 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-07 20:35 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-xyz.scm (python-aiofiles): Update to 0.8.0.
---
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 2c76ff1922..94948fe4e2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26254,14 +26254,14 @@ (define-public python-contextvars
(define-public python-aiofiles
(package
(name "python-aiofiles")
- (version "0.6.0")
+ (version "0.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aiofiles" version))
(sha256
(base32
- "14m01kjxm2j7zyljjj6xlhlgygcsriymbx730gc5jp9xglaina70"))))
+ "0n8yj2d4srlkrhk72fcnkfb3jkv74a5aghxjhcp3p2i46lrg4d43"))))
(build-system python-build-system)
(home-page "https://github.com/Tinche/aiofiles")
(synopsis "File support for @code{asyncio}")
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH] gnu: python-semantic-version: Update to 2.10.0.
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
` (6 preceding siblings ...)
2022-06-07 20:35 ` [bug#55831] [PATCH] gnu: python-aiofiles: Update to 0.8.0 peter
@ 2022-06-07 21:02 ` peter
2022-06-08 0:43 ` [bug#55831] [PATCH] gnu: Add python-platformio peter
` (2 subsequent siblings)
10 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-07 21:02 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-xyz.scm (python-semantic-version): Update to 2.10.0.
---
gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 94948fe4e2..3f19fb363f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1761,15 +1761,33 @@ (define-public python-filelock
(define-public python-semantic-version
(package
(name "python-semantic-version")
- (version "2.8.5")
+ (version "2.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "semantic_version" version))
(sha256
(base32
- "0m4avx8zdkzc7qglv5zlr54g8yna5vl098drg5396ql7aph2vjyj"))))
+ "0704smz9k6hdd6i5xh0xf0sk47kannjb77abilvvp34r6v9vdaxx"))))
(build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ ;; Skip the only failing test "test_django" because settings
+ ;; are not configured.
+ (invoke "pytest" "-vv" "-k" "not test_django")))))))
+ (native-inputs (list python-check-manifest
+ python-colorama
+ python-coverage
+ python-django
+ python-flake8
+ python-nose2
+ python-readme-renderer
+ python-tox
+ python-wheel))
(home-page "https://github.com/rbarrois/python-semanticversion")
(synopsis "Semantic versioning module for Python")
(description
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH] gnu: Add python-platformio.
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
` (7 preceding siblings ...)
2022-06-07 21:02 ` [bug#55831] [PATCH] gnu: python-semantic-version: Update to 2.10.0 peter
@ 2022-06-08 0:43 ` peter
2022-06-08 18:18 ` [bug#55831] [PATCH] Rename python-platformio to platformio peter
2022-06-08 20:55 ` [bug#55831] [PATCH 0/8] Add platformio and dependencies peter
10 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-08 0:43 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/embedded.scm (python-platformio): New variable.
---
gnu/packages/embedded.scm | 59 +++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 6a66fe4753..79605d8be5 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -12,6 +12,7 @@
;;; Copyright © 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2022 Mathieu Othacehe <othacehe@gnu.org>
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1556,6 +1557,64 @@ (define-public sdcc
license:public-domain
license:zlib))))
+(define-public python-platformio
+ (package
+ (name "python-platformio")
+ (version "6.0.2")
+ (source (origin
+ ;; PyPI does not include tox.ini
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/platformio/platformio-core")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0scb9z3rpkpdvpx6lcj51vqx1vzkxi2fdfqxk2ir9r9qwgvhbxf9"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; Requirements refer to a specific version of dependencies,
+ ;; which are too old. So we patch to refer to any later version.
+ (add-after 'unpack 'patch-requirements
+ (lambda _
+ (substitute* "setup.py"
+ (("==") ">="))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "tox" "-e" "py39" "--sitepackages")))))))
+ (propagated-inputs (list python-aiofiles
+ python-ajsonrpc
+ python-bottle
+ python-click
+ python-colorama
+ python-marshmallow
+ python-pyelftools
+ python-pyserial
+ python-requests
+ python-semantic-version
+ python-service-identity
+ python-starlette
+ python-tabulate
+ python-twisted
+ python-uvicorn
+ python-wsproto
+ python-zeroconf))
+ (native-inputs (list python-black
+ python-isort
+ python-jsondiff
+ python-tox
+ python-pylint
+ python-pytest
+ python-pytest-xdist))
+ (home-page "https://platformio.org")
+ (synopsis "Platform for embedded development")
+ (description
+ "PlatformIO is a cross-platform, cross-architecture, multiple framework,
+tool for embedded systems development.")
+ (license license:asl2.0)))
+
(define-public python-psptool
(package
(name "python-psptool")
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH] Rename python-platformio to platformio
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
` (8 preceding siblings ...)
2022-06-08 0:43 ` [bug#55831] [PATCH] gnu: Add python-platformio peter
@ 2022-06-08 18:18 ` peter
2022-06-08 18:56 ` Liliana Marie Prikler
2022-06-08 20:55 ` [bug#55831] [PATCH 0/8] Add platformio and dependencies peter
10 siblings, 1 reply; 21+ messages in thread
From: peter @ 2022-06-08 18:18 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
---
gnu/packages/embedded.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 79605d8be5..5b5192c751 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -1557,9 +1557,9 @@ (define-public sdcc
license:public-domain
license:zlib))))
-(define-public python-platformio
+(define-public platformio
(package
- (name "python-platformio")
+ (name "platformio")
(version "6.0.2")
(source (origin
;; PyPI does not include tox.ini
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH] Rename python-platformio to platformio
2022-06-08 18:18 ` [bug#55831] [PATCH] Rename python-platformio to platformio peter
@ 2022-06-08 18:56 ` Liliana Marie Prikler
0 siblings, 0 replies; 21+ messages in thread
From: Liliana Marie Prikler @ 2022-06-08 18:56 UTC (permalink / raw)
To: peter, 55831
Am Mittwoch, dem 08.06.2022 um 14:18 -0400 schrieb peter@polidoro.io:
> From: Peter Polidoro <peter@polidoro.io>
Provide ChangeLogs, also order your commits.
> ---
> gnu/packages/embedded.scm | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
> index 79605d8be5..5b5192c751 100644
> --- a/gnu/packages/embedded.scm
> +++ b/gnu/packages/embedded.scm
> @@ -1557,9 +1557,9 @@ (define-public sdcc
> license:public-domain
> license:zlib))))
>
> -(define-public python-platformio
> +(define-public platformio
> (package
> - (name "python-platformio")
> + (name "platformio")
This change should probably be squashed onto the previous one :)
^ permalink raw reply [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH 0/8] Add platformio and dependencies
2022-06-07 14:27 [bug#55831] Add python-platformio and dependencies Peter Polidoro
` (9 preceding siblings ...)
2022-06-08 18:18 ` [bug#55831] [PATCH] Rename python-platformio to platformio peter
@ 2022-06-08 20:55 ` peter
2022-06-08 20:55 ` [bug#55831] [PATCH 1/8] gnu: Add python-starlette peter
` (7 more replies)
10 siblings, 8 replies; 21+ messages in thread
From: peter @ 2022-06-08 20:55 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
Platformio is a python package that required adding some new packages and
updating others. Most of the updates were relatively straightforward, but
python-httpcore and python-httpx seem to have cyclic dependencies on each
other, so those updates are included as a single commit. Some of these updates
may affect packages not included in this patch series. For example, several
python packages specify a dependency on h11 less than 0.13.0. If necessary,
those guix packages can be updated to relax that requirement or version 0.12.0
could be added if that dependency restriction is indeed necessary.
Peter Polidoro (8):
gnu: Add python-starlette.
gnu: python-h11: Update to 0.13.0.
gnu: python-wsproto: Update to 1.1.0.
gnu: python-httpcore and python-httpx: Update to 0.15.0 and 0.23.0
gnu: python-sanic-testing: Update requirements.
gnu: python-aiofiles: Update to 0.8.0.
gnu: python-semantic-version: Update to 2.10.0.
gnu: Add platformio.
gnu/packages/embedded.scm | 59 ++++++++++++++++++++++++++++++++
gnu/packages/python-web.scm | 67 ++++++++++++++++++++++++++++++-------
gnu/packages/python-xyz.scm | 26 +++++++++++---
3 files changed, 136 insertions(+), 16 deletions(-)
--
2.36.1
^ permalink raw reply [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH 1/8] gnu: Add python-starlette.
2022-06-08 20:55 ` [bug#55831] [PATCH 0/8] Add platformio and dependencies peter
@ 2022-06-08 20:55 ` peter
2022-06-08 20:55 ` [bug#55831] [PATCH 2/8] gnu: python-h11: Update to 0.13.0 peter
` (6 subsequent siblings)
7 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-08 20:55 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-web.scm (python-starlette): New variable.
---
gnu/packages/python-web.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 06a0d2593b..9a3a11c7d1 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1200,6 +1200,30 @@ (define-public python-h2
Python HTTP implementation.")
(license license:expat)))
+(define-public python-starlette
+ (package
+ (name "python-starlette")
+ (version "0.20.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "starlette" version))
+ (sha256
+ (base32
+ "1si8plb5lgwkcaqzccrrisiksdrxldq94kij73i0mizn7l42g0nx"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-anyio
+ python-typing-extensions
+ python-itsdangerous
+ python-jinja2
+ python-multipart
+ python-pyyaml
+ python-requests))
+ (home-page "https://github.com/encode/starlette")
+ (synopsis "Lightweight ASGI framework for building async web services in Python")
+ (description "This package is a lightweight Asynchronous Server Gateway Interface for
+building async web services in Python.")
+ (license license:bsd-3)))
+
(define-public python-sockjs-tornado
(package
(name "python-sockjs-tornado")
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH 2/8] gnu: python-h11: Update to 0.13.0.
2022-06-08 20:55 ` [bug#55831] [PATCH 0/8] Add platformio and dependencies peter
2022-06-08 20:55 ` [bug#55831] [PATCH 1/8] gnu: Add python-starlette peter
@ 2022-06-08 20:55 ` peter
2022-06-08 20:55 ` [bug#55831] [PATCH 3/8] gnu: python-wsproto: Update to 1.1.0 peter
` (5 subsequent siblings)
7 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-08 20:55 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-web.scm (python-h11): Update to 0.13.0.
---
gnu/packages/python-web.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 9a3a11c7d1..7486d6d08c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1141,13 +1141,13 @@ (define-public python-hpack
(define-public python-h11
(package
(name "python-h11")
- (version "0.12.0")
+ (version "0.13.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "h11" version))
(sha256
- (base32 "0hk0nll6qazsambp3kl8cxxsbl4gv5y9252qadyk0jky0sv2q8j7"))))
+ (base32 "01pzawwhr537ypm966hli0hspzw104d0xk1q9n528yh86l8kr0bh"))))
(build-system python-build-system)
(arguments
`(#:phases
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH 3/8] gnu: python-wsproto: Update to 1.1.0.
2022-06-08 20:55 ` [bug#55831] [PATCH 0/8] Add platformio and dependencies peter
2022-06-08 20:55 ` [bug#55831] [PATCH 1/8] gnu: Add python-starlette peter
2022-06-08 20:55 ` [bug#55831] [PATCH 2/8] gnu: python-h11: Update to 0.13.0 peter
@ 2022-06-08 20:55 ` peter
2022-06-08 20:55 ` [bug#55831] [PATCH 4/8] gnu: python-httpcore and python-httpx: Update to 0.15.0 and 0.23.0 peter
` (4 subsequent siblings)
7 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-08 20:55 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-web.scm (python-wsproto): Update to 1.1.0.
---
gnu/packages/python-web.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 7486d6d08c..58bdac622a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1935,13 +1935,13 @@ (define-public python-priority
(define-public python-wsproto
(package
(name "python-wsproto")
- (version "0.15.0")
+ (version "1.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "wsproto" version))
(sha256
- (base32 "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1"))))
+ (base32 "1a5x27qyrq0n4vk6ca47fj5pjdvdrpn5yfyqd49krn3wbkynprd2"))))
(build-system python-build-system)
(arguments
`(#:phases
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH 4/8] gnu: python-httpcore and python-httpx: Update to 0.15.0 and 0.23.0
2022-06-08 20:55 ` [bug#55831] [PATCH 0/8] Add platformio and dependencies peter
` (2 preceding siblings ...)
2022-06-08 20:55 ` [bug#55831] [PATCH 3/8] gnu: python-wsproto: Update to 1.1.0 peter
@ 2022-06-08 20:55 ` peter
2022-06-08 20:55 ` [bug#55831] [PATCH 5/8] gnu: python-sanic-testing: Update requirements peter
` (3 subsequent siblings)
7 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-08 20:55 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
These packages seem to have cyclic dependencies on each other so they may need
to be updated together.
* gnu/packages/python-web.scm (python-httpcore): Update to 0.15.0.
---
gnu/packages/python-web.scm | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 58bdac622a..22c09af1ed 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5317,7 +5317,7 @@ (define-public python-vf-1
(define-public python-httpcore
(package
(name "python-httpcore")
- (version "0.14.7")
+ (version "0.15.0")
(source
(origin
;; PyPI tarball does not contain tests.
@@ -5327,15 +5327,20 @@ (define-public python-httpcore
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0wdr28vf03l6yxhk8nrvhh7y7x18rqdcfzv1sb6jgzk9zmycrvc7"))))
+ (base32 "0skj8f85l52gl6x449wzaixcwsyayvn59iwn0df4b7ixlz6xhp8l"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-requirements
+ (lambda _
+ (substitute* "setup.py"
+ (("h11>=0\\.11,<0\\.13") "h11"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- (invoke "pytest" "-vv" "tests")))))))
+ (invoke "pytest" "-vv" "tests"
+ "-o""asyncio_mode=auto")))))))
(native-inputs
(list python-pytest
python-pytest-asyncio
@@ -5376,13 +5381,17 @@ (define-public python-httpcore-bootstrap
(hidden-package
(package/inherit python-httpcore
(name "python-httpcore-bootstrap")
- (arguments (list #:tests? #f))
+ (arguments
+ '(#:tests? #f
+ ;; sanity check fails when arguments overridden
+ #:phases (modify-phases %standard-phases
+ (delete 'sanity-check))))
(native-inputs '()))))
(define-public python-httpx
(package
(name "python-httpx")
- (version "0.22.0")
+ (version "0.23.0")
(source
(origin
;; PyPI tarball does not contain tests.
@@ -5392,7 +5401,7 @@ (define-public python-httpx
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1awr56488b66zyl3cx1f03lq2n07xdg5kb4l46vnsm59s6hr02c5"))))
+ (base32 "0bihm7ylq9ajxz8qyba0xp9qkwm7n06hk01ywkq2vpz65ix5hpdk"))))
(build-system python-build-system)
(arguments
`(#:phases
@@ -5478,7 +5487,11 @@ (define-public python-httpx-bootstrap
(hidden-package
(package/inherit python-httpx
(name "python-httpx-bootstrap")
- (arguments (list #:tests? #f))
+ (arguments
+ '(#:tests? #f
+ ;; sanity check fails when arguments overridden
+ #:phases (modify-phases %standard-phases
+ (delete 'sanity-check))))
(native-inputs '())
(propagated-inputs
(modify-inputs (package-propagated-inputs python-httpx)
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH 5/8] gnu: python-sanic-testing: Update requirements.
2022-06-08 20:55 ` [bug#55831] [PATCH 0/8] Add platformio and dependencies peter
` (3 preceding siblings ...)
2022-06-08 20:55 ` [bug#55831] [PATCH 4/8] gnu: python-httpcore and python-httpx: Update to 0.15.0 and 0.23.0 peter
@ 2022-06-08 20:55 ` peter
2022-06-08 20:55 ` [bug#55831] [PATCH 6/8] gnu: python-aiofiles: Update to 0.8.0 peter
` (2 subsequent siblings)
7 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-08 20:55 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-web.scm (): Update to .
---
gnu/packages/python-web.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 22c09af1ed..afa5473969 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -6362,7 +6362,13 @@ (define-public python-sanic-testing
(arguments
;; PyPi sources does not contain tests, recursive dependency on
;; python-sanic.
- (list #:tests? #f))
+ '(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-requirements
+ (lambda _
+ (substitute* "setup.py"
+ (("httpx>=0\\.18,<0\\.23") "httpx")))))))
(propagated-inputs (list python-httpx python-sanic-bootstrap
python-websockets))
(home-page "https://github.com/sanic-org/sanic-testing/")
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH 6/8] gnu: python-aiofiles: Update to 0.8.0.
2022-06-08 20:55 ` [bug#55831] [PATCH 0/8] Add platformio and dependencies peter
` (4 preceding siblings ...)
2022-06-08 20:55 ` [bug#55831] [PATCH 5/8] gnu: python-sanic-testing: Update requirements peter
@ 2022-06-08 20:55 ` peter
2022-06-08 20:55 ` [bug#55831] [PATCH 7/8] gnu: python-semantic-version: Update to 2.10.0 peter
2022-06-08 20:55 ` [bug#55831] [PATCH 8/8] gnu: Add platformio peter
7 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-08 20:55 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-xyz.scm (python-aiofiles): Update to 0.8.0.
---
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 2c76ff1922..94948fe4e2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26254,14 +26254,14 @@ (define-public python-contextvars
(define-public python-aiofiles
(package
(name "python-aiofiles")
- (version "0.6.0")
+ (version "0.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aiofiles" version))
(sha256
(base32
- "14m01kjxm2j7zyljjj6xlhlgygcsriymbx730gc5jp9xglaina70"))))
+ "0n8yj2d4srlkrhk72fcnkfb3jkv74a5aghxjhcp3p2i46lrg4d43"))))
(build-system python-build-system)
(home-page "https://github.com/Tinche/aiofiles")
(synopsis "File support for @code{asyncio}")
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH 7/8] gnu: python-semantic-version: Update to 2.10.0.
2022-06-08 20:55 ` [bug#55831] [PATCH 0/8] Add platformio and dependencies peter
` (5 preceding siblings ...)
2022-06-08 20:55 ` [bug#55831] [PATCH 6/8] gnu: python-aiofiles: Update to 0.8.0 peter
@ 2022-06-08 20:55 ` peter
2022-06-08 20:55 ` [bug#55831] [PATCH 8/8] gnu: Add platformio peter
7 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-08 20:55 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/python-xyz.scm (python-semantic-version): Update to 2.10.0.
---
gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 94948fe4e2..3f19fb363f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1761,15 +1761,33 @@ (define-public python-filelock
(define-public python-semantic-version
(package
(name "python-semantic-version")
- (version "2.8.5")
+ (version "2.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "semantic_version" version))
(sha256
(base32
- "0m4avx8zdkzc7qglv5zlr54g8yna5vl098drg5396ql7aph2vjyj"))))
+ "0704smz9k6hdd6i5xh0xf0sk47kannjb77abilvvp34r6v9vdaxx"))))
(build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ ;; Skip the only failing test "test_django" because settings
+ ;; are not configured.
+ (invoke "pytest" "-vv" "-k" "not test_django")))))))
+ (native-inputs (list python-check-manifest
+ python-colorama
+ python-coverage
+ python-django
+ python-flake8
+ python-nose2
+ python-readme-renderer
+ python-tox
+ python-wheel))
(home-page "https://github.com/rbarrois/python-semanticversion")
(synopsis "Semantic versioning module for Python")
(description
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [bug#55831] [PATCH 8/8] gnu: Add platformio.
2022-06-08 20:55 ` [bug#55831] [PATCH 0/8] Add platformio and dependencies peter
` (6 preceding siblings ...)
2022-06-08 20:55 ` [bug#55831] [PATCH 7/8] gnu: python-semantic-version: Update to 2.10.0 peter
@ 2022-06-08 20:55 ` peter
7 siblings, 0 replies; 21+ messages in thread
From: peter @ 2022-06-08 20:55 UTC (permalink / raw)
To: 55831; +Cc: Peter Polidoro
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/embedded.scm (platformio): New variable.
---
gnu/packages/embedded.scm | 59 +++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 6a66fe4753..5b5192c751 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -12,6 +12,7 @@
;;; Copyright © 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2022 Mathieu Othacehe <othacehe@gnu.org>
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1556,6 +1557,64 @@ (define-public sdcc
license:public-domain
license:zlib))))
+(define-public platformio
+ (package
+ (name "platformio")
+ (version "6.0.2")
+ (source (origin
+ ;; PyPI does not include tox.ini
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/platformio/platformio-core")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0scb9z3rpkpdvpx6lcj51vqx1vzkxi2fdfqxk2ir9r9qwgvhbxf9"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; Requirements refer to a specific version of dependencies,
+ ;; which are too old. So we patch to refer to any later version.
+ (add-after 'unpack 'patch-requirements
+ (lambda _
+ (substitute* "setup.py"
+ (("==") ">="))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "tox" "-e" "py39" "--sitepackages")))))))
+ (propagated-inputs (list python-aiofiles
+ python-ajsonrpc
+ python-bottle
+ python-click
+ python-colorama
+ python-marshmallow
+ python-pyelftools
+ python-pyserial
+ python-requests
+ python-semantic-version
+ python-service-identity
+ python-starlette
+ python-tabulate
+ python-twisted
+ python-uvicorn
+ python-wsproto
+ python-zeroconf))
+ (native-inputs (list python-black
+ python-isort
+ python-jsondiff
+ python-tox
+ python-pylint
+ python-pytest
+ python-pytest-xdist))
+ (home-page "https://platformio.org")
+ (synopsis "Platform for embedded development")
+ (description
+ "PlatformIO is a cross-platform, cross-architecture, multiple framework,
+tool for embedded systems development.")
+ (license license:asl2.0)))
+
(define-public python-psptool
(package
(name "python-psptool")
--
2.36.1
^ permalink raw reply related [flat|nested] 21+ messages in thread