From unknown Sat Jun 21 03:21:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#72635] [PATCH] gnu: Add python-usbrelay. Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 15 Aug 2024 07:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72635 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72635@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172370618913848 (code B ref -1); Thu, 15 Aug 2024 07:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Aug 2024 07:16:29 +0000 Received: from localhost ([127.0.0.1]:48243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seUii-0003bG-Tk for submit@debbugs.gnu.org; Thu, 15 Aug 2024 03:16:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:36958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seUig-0003b8-96 for submit@debbugs.gnu.org; Thu, 15 Aug 2024 03:16:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seUi4-0005jM-E9 for guix-patches@gnu.org; Thu, 15 Aug 2024 03:15:49 -0400 Received: from roxy-shared.hosting.energy ([137.74.182.160] helo=roxy.hosting.energy) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seUhz-0002dT-6q for guix-patches@gnu.org; Thu, 15 Aug 2024 03:15:48 -0400 Received: from [45.137.112.34] (helo=laptop) by roxy.hosting.energy with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1seUhx-000000003Rs-1IDW for guix-patches@gnu.org; Thu, 15 Aug 2024 10:15:41 +0300 From: Evgeny Pisemsky Date: Thu, 15 Aug 2024 10:15:38 +0300 Message-ID: <87sev6i7dx.fsf@pisemsky.site> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-python-usbrelay.patch X-Scanned-By: ClamAV 0.101.4; Thu, 15 Aug 2024 10:15:41 +0300 Received-SPF: pass client-ip=137.74.182.160; envelope-from=mail@pisemsky.site; helo=roxy.hosting.energy X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >From 7848f0db92bee6fa523661d4599a294df1668b0c Mon Sep 17 00:00:00 2001 Message-ID: <7848f0db92bee6fa523661d4599a294df1668b0c.1723705343.git.mail@pisemsky.site> From: Evgeny Pisemsky Date: Thu, 15 Aug 2024 10:00:00 +0300 Subject: [PATCH] gnu: Add python-usbrelay. * gnu/packages/hardware.scm (python-usbrelay): New variable. Change-Id: Icc389604a9bbc8f91fd7b00c1f5cebe3faac3e09 --- gnu/packages/hardware.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index d8530f8705..5c82f02255 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -70,6 +70,7 @@ (define-module (gnu packages hardware) #:use-module (gnu packages linux) #:use-module (gnu packages lua) #:use-module (gnu packages lxqt) + #:use-module (gnu packages messaging) #:use-module (gnu packages mtools) #:use-module (gnu packages package-management) #:use-module (gnu packages ncurses) @@ -1622,3 +1623,32 @@ (define-public usbrelay HID compatible USB relay modules available with different number of output relays.") (license license:gpl2+))) + +(define-public python-usbrelay + (package + (inherit usbrelay) + (name "python-usbrelay") + (build-system python-build-system) + (inputs (list usbrelay)) + (propagated-inputs (list python-paho-mqtt)) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'install-daemon + (lambda _ + (install-file "usbrelayd.8" + (string-append #$output "/share/man/man8")) + (install-file "usbrelayd" + (string-append #$output "/sbin")) + (chmod (string-append #$output "/sbin/usbrelayd") #o555))) + (add-after 'install-daemon 'chdir-and-set-version + (lambda _ + (chdir "usbrelay_py") + (substitute* "setup.py" + ((" version = .*") + (string-append " version = '" + #$(package-version usbrelay) "',\n"))) + (substitute* "src/__init__.py" + (("__version__ = .*") + (string-append "__version__ = \"" + #$(package-version usbrelay) "\"\n")))))))))) base-commit: 936928fe38946a7496273e636ca8888914d100a9 -- 2.45.2 From unknown Sat Jun 21 03:21:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#72635] [PATCH] gnu: Add python-usbrelay. References: <87sev6i7dx.fsf@pisemsky.site> In-Reply-To: <87sev6i7dx.fsf@pisemsky.site> Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Oct 2024 13:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72635 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72635@debbugs.gnu.org Received: via spool by 72635-submit@debbugs.gnu.org id=B72635.17278773708784 (code B ref 72635); Wed, 02 Oct 2024 13:57:02 +0000 Received: (at 72635) by debbugs.gnu.org; 2 Oct 2024 13:56:10 +0000 Received: from localhost ([127.0.0.1]:58308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svzpp-0002HY-Pt for submit@debbugs.gnu.org; Wed, 02 Oct 2024 09:56:10 -0400 Received: from roxy-shared.hosting.energy ([137.74.182.160]:46533 helo=roxy.hosting.energy) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svzpk-0002Ci-Kv for 72635@debbugs.gnu.org; Wed, 02 Oct 2024 09:56:09 -0400 Received: from [185.211.158.96] (helo=laptop) by roxy.hosting.energy with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1svzpc-000000000v0-1oxi for 72635@debbugs.gnu.org; Wed, 02 Oct 2024 16:55:56 +0300 From: Evgeny Pisemsky Date: Wed, 02 Oct 2024 16:55:55 +0300 Message-ID: <878qv6fw2c.fsf@pisemsky.site> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: ClamAV 0.101.4; Wed, 02 Oct 2024 16:55:56 +0300 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Any problems with this patch? Packaged using python-capstone and capstone as example. Substitutions set actual version since upstream does not care. From unknown Sat Jun 21 03:21:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#72635] [PATCH v1] gnu: Add python-usbrelay. References: <87sev6i7dx.fsf@pisemsky.site> In-Reply-To: <87sev6i7dx.fsf@pisemsky.site> Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Feb 2025 09:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72635 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72635@debbugs.gnu.org Received: via spool by 72635-submit@debbugs.gnu.org id=B72635.174073579819087 (code B ref 72635); Fri, 28 Feb 2025 09:44:02 +0000 Received: (at 72635) by debbugs.gnu.org; 28 Feb 2025 09:43:18 +0000 Received: from localhost ([127.0.0.1]:45183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnwtm-0004xV-7g for submit@debbugs.gnu.org; Fri, 28 Feb 2025 04:43:18 -0500 Received: from pisemsky.site ([103.54.19.55]:39654) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tnwth-0004wZ-W3 for 72635@debbugs.gnu.org; Fri, 28 Feb 2025 04:43:11 -0500 Received: from localhost.localdomain ( [212.233.84.128]) by pisemsky.site (OpenSMTPD) with ESMTPSA id 0187ca3c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <72635@debbugs.gnu.org>; Fri, 28 Feb 2025 09:43:04 +0000 (UTC) From: Evgeny Pisemsky Date: Fri, 28 Feb 2025 12:42:24 +0300 Message-ID: <3868e13e73af26ba81cdf618c984301a9b490765.1740735744.git.mail@pisemsky.site> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/hardware.scm (python-usbrelay): New variable. Change-Id: Icc389604a9bbc8f91fd7b00c1f5cebe3faac3e09 --- gnu/packages/hardware.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [103.54.19.55 listed in bl.score.senderscore.com] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [103.54.19.55 listed in sa-trusted.bondedsender.org] 3.6 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [103.54.19.55 listed in zen.spamhaus.org] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/hardware.scm (python-usbrelay): New variable. Change-Id: Icc389604a9bbc8f91fd7b00c1f5cebe3faac3e09 --- gnu/packages/hardware.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [103.54.19.55 listed in sa-accredit.habeas.com] 3.6 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [103.54.19.55 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * gnu/packages/hardware.scm (python-usbrelay): New variable. Change-Id: Icc389604a9bbc8f91fd7b00c1f5cebe3faac3e09 --- gnu/packages/hardware.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 13850b8e12..b8a0acf1ff 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2018–2022 Tobias Geerinckx-Rice ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen ;;; Copyright © 2020 Brice Waegeneire -;;; Copyright © 2021, 2023, 2024 Evgeny Pisemsky +;;; Copyright © 2021, 2023-2025 Evgeny Pisemsky ;;; Copyright © 2021 Léo Le Bouter ;;; Copyright © 2021 Denis Carikli ;;; Copyright © 2021, 2022 Petr Hodina @@ -73,6 +73,7 @@ (define-module (gnu packages hardware) #:use-module (gnu packages linux) #:use-module (gnu packages lua) #:use-module (gnu packages lxqt) + #:use-module (gnu packages messaging) #:use-module (gnu packages mtools) #:use-module (gnu packages package-management) #:use-module (gnu packages ncurses) @@ -86,6 +87,7 @@ (define-module (gnu packages hardware) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) + #:use-module (gnu packages python-build) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) @@ -1616,3 +1618,26 @@ (define-public usbrelay HID compatible USB relay modules available with different number of output relays.") (license license:gpl2+))) + +(define-public python-usbrelay + (package + (inherit usbrelay) + (name "python-usbrelay") + (build-system pyproject-build-system) + (native-inputs (list python-setuptools python-wheel)) + (inputs (list usbrelay)) + (propagated-inputs (list python-paho-mqtt)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'install-daemon + (lambda _ + (install-file "usbrelayd.8" + (string-append #$output "/share/man/man8")) + (install-file "usbrelayd" + (string-append #$output "/sbin")) + (chmod (string-append #$output "/sbin/usbrelayd") #o555))) + (add-after 'install-daemon 'chdir + (lambda _ + (chdir "usbrelay_py")))))))) base-commit: a76708a872e65230931f3c5c3b079d0a39d5cb84 -- 2.48.1 From unknown Sat Jun 21 03:21:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Evgeny Pisemsky Subject: bug#72635: closed (Re: [bug#72635] [PATCH v1] gnu: Add python-usbrelay.) Message-ID: References: <87ldtoxsli.fsf@cbaines.net> <87sev6i7dx.fsf@pisemsky.site> X-Gnu-PR-Message: they-closed 72635 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 72635@debbugs.gnu.org Date: Sat, 01 Mar 2025 23:03:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1740870182-502-1" This is a multi-part message in MIME format... ------------=_1740870182-502-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #72635: [PATCH] gnu: Add python-usbrelay. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 72635@debbugs.gnu.org. --=20 72635: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72635 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1740870182-502-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 72635-done) by debbugs.gnu.org; 1 Mar 2025 23:02:21 +0000 Received: from localhost ([127.0.0.1]:46217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toVqe-0008WK-Vc for submit@debbugs.gnu.org; Sat, 01 Mar 2025 18:02:21 -0500 Received: from mira.cbaines.net ([212.71.252.8]:44134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toVqc-0008Vy-HS for 72635-done@debbugs.gnu.org; Sat, 01 Mar 2025 18:02:19 -0500 Received: from localhost (unknown [IPv6:2a02:6b67:e390:8b00::1ce5]) by mira.cbaines.net (Postfix) with ESMTPSA id 27A5327BBE2; Sat, 1 Mar 2025 23:02:18 +0000 (GMT) Received: from fang (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id c02de203; Sat, 1 Mar 2025 23:02:17 +0000 (UTC) From: Christopher Baines To: Evgeny Pisemsky Subject: Re: [bug#72635] [PATCH v1] gnu: Add python-usbrelay. In-Reply-To: <3868e13e73af26ba81cdf618c984301a9b490765.1740735744.git.mail@pisemsky.site> (Evgeny Pisemsky's message of "Fri, 28 Feb 2025 12:42:24 +0300") References: <87sev6i7dx.fsf@pisemsky.site> <3868e13e73af26ba81cdf618c984301a9b490765.1740735744.git.mail@pisemsky.site> Date: Sat, 01 Mar 2025 23:02:17 +0000 Message-ID: <87ldtoxsli.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72635-done Cc: 72635-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Evgeny Pisemsky writes: > * gnu/packages/hardware.scm (python-usbrelay): New variable. > > Change-Id: Icc389604a9bbc8f91fd7b00c1f5cebe3faac3e09 > --- > gnu/packages/hardware.scm | 27 ++++++++++++++++++++++++++- > 1 file changed, 26 insertions(+), 1 deletion(-) Thanks for the patch, an update synopsis and description needed adding, otherwise it's just the name that separates this from usbrelay. I've written something that hopefully a good start and pushed this to master as 60942a822115b5ae790c8a63e8796809bf693e93. Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmfDkflfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xfz/hAAhncY+IUqgzSrR/P+gjTbTYbAMQ06kgnP sdRcPODRHxoz5GyMaQLUzp3QTkZf2af/CCb6PWBkspzYK0tfZ8TuQzePJv7tNJRt NfjAQUOIXccSK8bNlEcg6P3/zQm1iHwgZE0vXVRJVRSRKyYCCMmDNkZgoXA0hS0V q9uQHw+EuOZ4iPecRUtVNFYGTFRF4GdbNHcPzJd3wBXUbQtvlx0d9djyiuckXc5a 62G3T+W0cNMPBrqGi3g/qs+l9RN49S4/LDxNinVnRNVIbG9qBZ4U6bcURLZ/cwdm CUHNEgTSnr5DNpYfUz+NfON6F3jQq6WGQ7wZcd/ST5oQ406wY0rLa1oRAFK6nFbG SYtjkYMjIf/1WtS9QA/Z1Bc4YMQNUjMwuxYQjIwLLCOiWSR0khL1krs+Sv98wCpV n8W+95RlQVW3NN60h/400+7yp19I1p9bZQeT2Yi9GRS+MI6f8Pku4dI3GFdxzmOP Fvuh0PgnChtPG5fnInXXbtLCTyzaefvm0ziHUGSJlk8Z9foX+K8K8q9qZ9e8opoG yRT1OpKrEVKdLOAen6sixiM4LyySLhddg7vyq5Rzr5jq7kRySsITVmShwaLkoH3D 8VmgE+qXiM4JGUE9j6lisoJ1mvY7Xtqb9lDNxLEMbpFi2XgsP4SDGl9pLuXTNmd3 uK2D9lMJdsY= =yqvg -----END PGP SIGNATURE----- --=-=-=-- ------------=_1740870182-502-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Aug 2024 07:16:29 +0000 Received: from localhost ([127.0.0.1]:48243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seUii-0003bG-Tk for submit@debbugs.gnu.org; Thu, 15 Aug 2024 03:16:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:36958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seUig-0003b8-96 for submit@debbugs.gnu.org; Thu, 15 Aug 2024 03:16:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seUi4-0005jM-E9 for guix-patches@gnu.org; Thu, 15 Aug 2024 03:15:49 -0400 Received: from roxy-shared.hosting.energy ([137.74.182.160] helo=roxy.hosting.energy) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seUhz-0002dT-6q for guix-patches@gnu.org; Thu, 15 Aug 2024 03:15:48 -0400 Received: from [45.137.112.34] (helo=laptop) by roxy.hosting.energy with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1seUhx-000000003Rs-1IDW for guix-patches@gnu.org; Thu, 15 Aug 2024 10:15:41 +0300 From: Evgeny Pisemsky To: guix-patches@gnu.org Subject: [PATCH] gnu: Add python-usbrelay. Date: Thu, 15 Aug 2024 10:15:38 +0300 Message-ID: <87sev6i7dx.fsf@pisemsky.site> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-python-usbrelay.patch X-Scanned-By: ClamAV 0.101.4; Thu, 15 Aug 2024 10:15:41 +0300 Received-SPF: pass client-ip=137.74.182.160; envelope-from=mail@pisemsky.site; helo=roxy.hosting.energy X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >From 7848f0db92bee6fa523661d4599a294df1668b0c Mon Sep 17 00:00:00 2001 Message-ID: <7848f0db92bee6fa523661d4599a294df1668b0c.1723705343.git.mail@pisemsky.site> From: Evgeny Pisemsky Date: Thu, 15 Aug 2024 10:00:00 +0300 Subject: [PATCH] gnu: Add python-usbrelay. * gnu/packages/hardware.scm (python-usbrelay): New variable. Change-Id: Icc389604a9bbc8f91fd7b00c1f5cebe3faac3e09 --- gnu/packages/hardware.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index d8530f8705..5c82f02255 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -70,6 +70,7 @@ (define-module (gnu packages hardware) #:use-module (gnu packages linux) #:use-module (gnu packages lua) #:use-module (gnu packages lxqt) + #:use-module (gnu packages messaging) #:use-module (gnu packages mtools) #:use-module (gnu packages package-management) #:use-module (gnu packages ncurses) @@ -1622,3 +1623,32 @@ (define-public usbrelay HID compatible USB relay modules available with different number of output relays.") (license license:gpl2+))) + +(define-public python-usbrelay + (package + (inherit usbrelay) + (name "python-usbrelay") + (build-system python-build-system) + (inputs (list usbrelay)) + (propagated-inputs (list python-paho-mqtt)) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'install-daemon + (lambda _ + (install-file "usbrelayd.8" + (string-append #$output "/share/man/man8")) + (install-file "usbrelayd" + (string-append #$output "/sbin")) + (chmod (string-append #$output "/sbin/usbrelayd") #o555))) + (add-after 'install-daemon 'chdir-and-set-version + (lambda _ + (chdir "usbrelay_py") + (substitute* "setup.py" + ((" version = .*") + (string-append " version = '" + #$(package-version usbrelay) "',\n"))) + (substitute* "src/__init__.py" + (("__version__ = .*") + (string-append "__version__ = \"" + #$(package-version usbrelay) "\"\n")))))))))) base-commit: 936928fe38946a7496273e636ca8888914d100a9 -- 2.45.2 ------------=_1740870182-502-1--