GNU bug report logs - #72635
[PATCH] gnu: Add python-usbrelay.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Evgeny Pisemsky <mail@HIDDEN>; Keywords: patch; dated Thu, 15 Aug 2024 07:17:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 72635 <at> debbugs.gnu.org:


Received: (at 72635) by debbugs.gnu.org; 2 Oct 2024 13:56:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 09:56:10 2024
Received: from localhost ([127.0.0.1]:58308 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1svzpp-0002HY-Pt
	for submit <at> 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 <mail@HIDDEN>) id 1svzpk-0002Ci-Kv
 for 72635 <at> 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 <mail@HIDDEN>) id 1svzpc-000000000v0-1oxi
 for 72635 <at> debbugs.gnu.org; Wed, 02 Oct 2024 16:55:56 +0300
From: Evgeny Pisemsky <mail@HIDDEN>
To: 72635 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add python-usbrelay.
Date: Wed, 02 Oct 2024 16:55:55 +0300
Message-ID: <878qv6fw2c.fsf@HIDDEN>
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-Debbugs-Envelope-To: 72635
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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.




Information forwarded to guix-patches@HIDDEN:
bug#72635; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Aug 2024 07:16:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 03:16:29 2024
Received: from localhost ([127.0.0.1]:48243 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1seUii-0003bG-Tk
	for submit <at> 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 <mail@HIDDEN>) id 1seUig-0003b8-96
 for submit <at> 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 <mail@HIDDEN>)
 id 1seUi4-0005jM-E9
 for guix-patches@HIDDEN; 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 <mail@HIDDEN>)
 id 1seUhz-0002dT-6q
 for guix-patches@HIDDEN; 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 <mail@HIDDEN>) id 1seUhx-000000003Rs-1IDW
 for guix-patches@HIDDEN; Thu, 15 Aug 2024 10:15:41 +0300
From: Evgeny Pisemsky <mail@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add python-usbrelay.
Date: Thu, 15 Aug 2024 10:15:38 +0300
Message-ID: <87sev6i7dx.fsf@HIDDEN>
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@HIDDEN;
 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

From 7848f0db92bee6fa523661d4599a294df1668b0c Mon Sep 17 00:00:00 2001
Message-ID: <7848f0db92bee6fa523661d4599a294df1668b0c.1723705343.git.mail@HIDDEN>
From: Evgeny Pisemsky <mail@HIDDEN>
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





Acknowledgement sent to Evgeny Pisemsky <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#72635; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.