From patchwork Wed Jun 8 20:55:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Polidoro X-Patchwork-Id: 39804 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id CA4C027BBEA; Wed, 8 Jun 2022 21:59:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EBE2427BBE9 for ; Wed, 8 Jun 2022 21:59:12 +0100 (BST) Received: from localhost ([::1]:54642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nz2lk-0007rO-4j for patchwork@mira.cbaines.net; Wed, 08 Jun 2022 16:59:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nz2jg-0004Hm-1n for guix-patches@gnu.org; Wed, 08 Jun 2022 16:57:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nz2jf-0003As-Pe for guix-patches@gnu.org; Wed, 08 Jun 2022 16:57:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nz2jf-00018X-P6 for guix-patches@gnu.org; Wed, 08 Jun 2022 16:57:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55831] [PATCH 8/8] gnu: Add platformio. Resent-From: peter@polidoro.io Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Jun 2022 20:57:03 +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.16547217884295 (code B ref 55831); Wed, 08 Jun 2022 20:57:03 +0000 Received: (at 55831) by debbugs.gnu.org; 8 Jun 2022 20:56:28 +0000 Received: from localhost ([127.0.0.1]:44412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nz2j6-00017C-6V for submit@debbugs.gnu.org; Wed, 08 Jun 2022 16:56:28 -0400 Received: from buffalo.birch.relay.mailchannels.net ([23.83.209.24]:24388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nz2j4-000173-56 for 55831@debbugs.gnu.org; Wed, 08 Jun 2022 16:56:26 -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 E441F6A11EF; Wed, 8 Jun 2022 20:56:24 +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 58A796A107D; Wed, 8 Jun 2022 20:55:54 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1654721784; a=rsa-sha256; cv=none; b=LTwQskrsocQ5YW5pHfXd143JX3OmhxYV05GgjsqVmEG/ehv/LCvSxp5SHkFq5+N5vjup/4 kdlHrEw+rfIiEpNs+ZZFn4F2NWqZmMMp/MbSFqcLOuOXOmRMjZDc3jlRLvz5VfGxrqbmYN Ntxpnv4FSddTjeDiCvI3mmL5ES4PAgHf2+nEIJ0FmIusEGPWf1C6o49BiqKId3U3bHFgfY D87RJg9WLgAN8KYXloI0/u7itfEw2FJzJcZCB+mOpkv4o/Rby6DR0MlXNkzSl1TJJjRC0z kBpIIlGvYeD/AMIdmiYFk0kIY27GHYUs9vi4dINK4C5dyn+fnlrHV23w+EElqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1654721784; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=VWqTsFGhvOr40Z5abIm6qpDzJh82JL/WtBhktINavSk=; b=Pfec7H+TGtmPFwii96AaUwYdkJIO8lllr/MCzC8nJZEvJPYJ5gUFHTaxZyXD6mBL2+TTIX jQXWBPUcCpsmeJMehj4vjE7kU487C9TeFpTkuOXp9yUyTZ+vo+RRFIJvgfQr5/R2fn+bug +2E0ul8uOmCXnbagIcR/lVLjqT3Db+6zYFAXVXKf2Cgj+AoG2f54vQXyJ8EWXR9Y/tme81 f3v71GUQUPF4Y5hSsdeUDMy9Wqhst5DaBP9ed37Q+JZKL/feBJf7K81cqgKYKvirEuGMZk XVDFrlhl321H+2YW+32F7F5GVpf0f6fb6tFtQicARUY3HOpybKshQmtkxzHB2g== ARC-Authentication-Results: i=1; rspamd-848669fb87-7bs69; 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-Zesty-Gusty: 2e4cc77b7fd88093_1654721784808_3328558628 X-MC-Loop-Signature: 1654721784808:675397440 X-MC-Ingress-Time: 1654721784808 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.115.45.51 (trex/6.7.1); Wed, 08 Jun 2022 20:56:24 +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 4LJKJ95GZZzPb; Wed, 8 Jun 2022 13:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1654721754; bh=VWqTsFGhvOr40Z5abIm6qpDzJh82JL/WtBhktINavSk=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=XfbihTGb2UV6SIuyqDpZBZv2mtKBIvMVJL8vEN0RTN2vPRQCeIvpaliKXVOb5dbbV 9OO8yO8KvNIPlmDNl1QdCeurFwck26V6I9GfEounDbvOFww6tl3YQ1co+712Ln/GF9 mHk8YcnKRzOeWve0lmkDL0JgqH++H0Q9hr1JpUdKZGjXxADzv6uqPXz09pGqqw5u7J kF/oPZjIyCWTEv4XZveomr8ZRDezLBMphzs/WygvOYCqX90MB5B978TM5h4JeUuzrn +3xXSRWfyYzK/mV+xlrDZRlMfo88uWlzsaKgMZi1hsTADnFElOmE6CnV7pgHx6fmnH BS22xUzJ0AW2w== From: peter@polidoro.io Date: Wed, 8 Jun 2022 16:55:37 -0400 Message-Id: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Peter Polidoro * 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 ;;; 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 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")