From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qNg6NV3xn2KuBQAAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 02:46:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GMEzNF3xn2JCOgEAG6o9tA (envelope-from ) for ; Wed, 08 Jun 2022 02:46:21 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 229A2BCED for ; Wed, 8 Jun 2022 02:46:21 +0200 (CEST) Received: from localhost ([::1]:37088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyjq0-0006iq-Ag for larch@yhetil.org; Tue, 07 Jun 2022 20:46:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyjnn-0003sR-9r for guix-patches@gnu.org; Tue, 07 Jun 2022 20:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyjnm-0003aY-Hb for guix-patches@gnu.org; Tue, 07 Jun 2022 20:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nyjnm-0000Fh-EP for guix-patches@gnu.org; Tue, 07 Jun 2022 20:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55831] [PATCH] gnu: Add python-platformio. References: <868rq8zgxm.fsf@polidoro.io> In-Reply-To: <868rq8zgxm.fsf@polidoro.io> Resent-From: peter@polidoro.io Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Jun 2022 00:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55831 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 55831@debbugs.gnu.org Cc: Peter Polidoro Received: via spool by 55831-submit@debbugs.gnu.org id=B55831.1654649033947 (code B ref 55831); Wed, 08 Jun 2022 00:44:02 +0000 Received: (at 55831) by debbugs.gnu.org; 8 Jun 2022 00:43:53 +0000 Received: from localhost ([127.0.0.1]:41932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyjnd-0000FC-3B for submit@debbugs.gnu.org; Tue, 07 Jun 2022 20:43:53 -0400 Received: from crocodile.elm.relay.mailchannels.net ([23.83.212.45]:46070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyjnZ-0000F2-2k for 55831@debbugs.gnu.org; Tue, 07 Jun 2022 20:43:51 -0400 X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8611E801B3C; Wed, 8 Jun 2022 00:43:47 +0000 (UTC) Received: from pdx1-sub0-mail-a294.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 0985D801C29; Wed, 8 Jun 2022 00:43:47 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1654649027; a=rsa-sha256; cv=none; b=V0VEycJOM/PMBeOPKVTJ7sgyYc/FKWT9ooD1hTW6uzeh6SxboZzIlqbLxBjvJyAuB03tHT lQ4avz1KHxeaNbeA11ROYElSTsiCjIhpMWO8mZKzL+BQ+X1YAJcepUja+pafHgHrKVSPEU otnJPrEac2tpUhXCpTAmIc/bpbaTcLjfe/l9TDhhQJChDZjOxFlmeyCV1OaWLcrbruoQL1 7JbSSJRfaROzQiaFg6k5UR32msQDZ7Wiy1SurQUbUJWSY/dIBfi6k7+IOET8iSRFs6uckv JArQ3VIatINz7cmVzNVTWfDlFLCWLeNAuSUyDqKbfClOrCeyIgvvpUA/cn2Cog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1654649027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=djvwHX1oJUJ57Q1gd4UxXFQD8hzTp038kg3SlWWngQA=; b=sGphTncqwfD8l3RSOUeQb0KT7Ckck2pEki7iDVNflSZCsZjL/GU4vGHSdtpC929dROK68s n2EFBh903n2MXrQKnEYqA6OyhTg/W+5PzbVIgmdTWZHcXUaq07t5V/QTjuRLEb3RgbLs/R ZjzvCmENsaS23WKHbQZwOEGmbw/eLxQoZfltxwKmxNs9UmvGttgophxX+GSGqFC7B/u/WR jrgDv1QRspHXPmI4kBfhfvicpOrxECgfay7zMCrFIHS3ZL4zFQwtj+faydVLhYoSEuRlal CJ8CeKIs0i10RnnMqa1Q88aKpVM0kLPI/MM3rVG6lCDhahZFpE7rItzaqxB9bg== ARC-Authentication-Results: i=1; rspamd-786f5898df-bv6df; auth=pass smtp.auth=dreamhost smtp.mailfrom=peter@polidoro.io X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|peter@polidoro.io X-MailChannels-Auth-Id: dreamhost X-Abiding-Share: 2e5a80012103cf3a_1654649027350_1043231126 X-MC-Loop-Signature: 1654649027350:3892171074 X-MC-Ingress-Time: 1654649027350 Received: from pdx1-sub0-mail-a294.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.96.96.51 (trex/6.7.1); Wed, 08 Jun 2022 00:43:47 +0000 Received: from knave.hhmi.org (unknown [206.241.0.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: peter@polidoro.io) by pdx1-sub0-mail-a294.dreamhost.com (Postfix) with ESMTPSA id 4LHpPZ3QyNz3m; Tue, 7 Jun 2022 17:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1654649026; bh=djvwHX1oJUJ57Q1gd4UxXFQD8hzTp038kg3SlWWngQA=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=XISr+NRNB6/etllagjSq7K1NVXJUHaiq6sR7EnF7iDkNptm7H7se8IAPW3Kvx10aD noMhjfFdE2rj97r7forn2Z+bbpqJ5cLOSOiehD96XwX8zbU84QLJZklA+slpFHXB+C uDHR1UZ3+HfgKvTly2qL/zl3o40g8/GUNPOKSRdZsQftPdl8kuYgjaJyaMR8ZuLkO/ HYL9Nimj33R0r1K+3nM7h09dQ7QFL9RHxCm6JxyuPDSuwTehaG0rfLM+wxq3qI/E3M HbHuhWXVQwibuoLHrorxq+ariSkNv2HEHpFZu2YtnSMYW6qq7MCTClSp5TCnvXfpH9 dwNkJauyxnD9w== From: peter@polidoro.io Date: Tue, 7 Jun 2022 20:43:35 -0400 Message-Id: X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654649181; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=djvwHX1oJUJ57Q1gd4UxXFQD8hzTp038kg3SlWWngQA=; b=H9MNBfDTpru98CzN9TIsg7VOt2/+T0RlWMKkRNqZwlke8tW6jvwzsvAi9w4dyoVNYyHzGz 2tm/lhj37V3OzTP2N/EyB7jj9hkrEgEVfEjEi0mLYdvO0B0kIHNzgW5Y9KN/5mI8F+B14X uSl23If06KVrgEZ4cRii3QPZzL1fVAyt1WGi+DWr9qVQjxsC45wb4M/9Gcfkh/3Zf1cz0y iCQ3Eh6eDFvOjtLaTaEzscImRxRuxEfaE2KbLV7+OarqWmZJpH0yeBhLRTSRHmYGs6zdW0 1gRTwBm1EOZ9f0YYYl3aBXBUIydX336tJNlstEkfj1BPguPBYHHdi7snWkmKuA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1654649181; a=rsa-sha256; cv=fail; b=VaD5qwGGuv0YTYvEtGYU2Hj01ae5IoZa4ziR5jJ4QXi+OQl/QSOJqioPHA4co6S9r9v+Tb KDHaG7Rsqip8ADeNd12BqWeqYXwbhKXkssc50rFLjQdKiaVH71j6j1garKKIm7a90/k9V/ B12F76BjOvyQeICJ2E7BV0JKElmJANWwSRQTkvYDYBZhgUCrW6fJHuSH7ul5aK2IU/+CJp QMvu5rzbwH9vJkNqEOFG5pwn92TNDHmIuA80zoX63AmQGLbH3l/bgUwvqyej0vk4dPFF4k 84Iv48kfIDJPzlIx5qz4+dfJTxerFq9BtyHlwa79UXgDxDLgC6GF9XIpQmrvJA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polidoro.io header.s=dreamhost header.b=XISr+NRN; arc=reject ("signature check failed: fail, {[1] = sig:mailchannels.net:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polidoro.io header.s=dreamhost header.b=XISr+NRN; arc=reject ("signature check failed: fail, {[1] = sig:mailchannels.net:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 229A2BCED X-Spam-Score: 3.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: zfVf6QAcbj0r From: Peter Polidoro * 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 ;;; Copyright © 2022 Mathieu Othacehe ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2022 Peter Polidoro ;;; ;;; 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