all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: peter@polidoro.io
To: 55831@debbugs.gnu.org
Cc: Peter Polidoro <peter@polidoro.io>
Subject: [bug#55831] [PATCH] gnu: Add python-platformio.
Date: Tue,  7 Jun 2022 20:43:35 -0400	[thread overview]
Message-ID: <aefeeafa8d187498206761248b8dfc7a7b9931f9.1654648968.git.peter@polidoro.io> (raw)
In-Reply-To: <868rq8zgxm.fsf@polidoro.io>

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





  parent reply	other threads:[~2022-06-08  0:46 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` [bug#55831] [PATCH] gnu: python-h11: Update to 0.13.0 peter
2022-06-07 17:13 ` [bug#55831] [PATCH] gnu: python-wsproto: Update to 1.1.0 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
2022-06-07 20:26 ` [bug#55831] [PATCH] gnu: python-sanic-testing: Update requirements peter
2022-06-07 20:35 ` [bug#55831] [PATCH] gnu: python-aiofiles: Update to 0.8.0 peter
2022-06-07 21:02 ` [bug#55831] [PATCH] gnu: python-semantic-version: Update to 2.10.0 peter
2022-06-08  0:43 ` peter [this message]
2022-06-08 18:18 ` [bug#55831] [PATCH] Rename python-platformio to platformio peter
2022-06-08 18:56   ` Liliana Marie Prikler
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   ` [bug#55831] [PATCH 3/8] gnu: python-wsproto: Update to 1.1.0 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
2022-06-08 20:55   ` [bug#55831] [PATCH 5/8] gnu: python-sanic-testing: Update requirements peter
2022-06-08 20:55   ` [bug#55831] [PATCH 6/8] gnu: python-aiofiles: Update to 0.8.0 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aefeeafa8d187498206761248b8dfc7a7b9931f9.1654648968.git.peter@polidoro.io \
    --to=peter@polidoro.io \
    --cc=55831@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.