From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uNLCKhB5wmTdUQEASxT56A (envelope-from ) for ; Thu, 27 Jul 2023 16:02:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SMmWKhB5wmQnigAAauVa8A (envelope-from ) for ; Thu, 27 Jul 2023 16:02:56 +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 4DA80451ED for ; Thu, 27 Jul 2023 16:02:46 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=EEbccEMK; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690466566; h=from:from:sender:sender:reply-to: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=75hhbhcU9bw0ke9iRtCWh+p8a32YXOjcBqZZAXriuE0=; b=W4cchEGNmaxLMcHgIKkEmMJGI4C5XDPPDDwnLQj1C+GC2JDkkLmsqwiXlYUg6ci+17zaXY yiwEU7ZWw91N2tt7GSQ79D0zRWdlEnG+HCpIxs8VVGIsHgCm9G5gVvkTcgjM2wH4tneAPP ppIcRQc6R/+YwIx3AfdIgKdAJJBDfk5TKYXowp8RN6J0uTCkEme//q1ysOSLtbOSqAYGNB 8uHK46Wtmly7hsHoqtVK7d525qx+4cDs5LhEHyBRaUmscGrot3kfV5AFxbnqFcI6aI5eLG f4YjlzYQkBrMuUP4BRyNwfDDgN+DW0icvUXImxqXDkE442sJQDcyJl4GkMgKwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690466566; a=rsa-sha256; cv=none; b=tpTptPb5nsQpB9P8d6tbOpFafqW/aA/rWm4hAd+0kVvltGfasJsNMbwukPbaaI5a4PJ8ej xVES1W2sxdHpgOVKqTn6kIbPB7Fz2DlxQG82XG421huxhvg90yCvtW82pmA84xriv0j6p6 tbH2WULMGeqn0NXgb0mSxSR/JS0gCQBkKyNolpQH7BHmWdWvo7G+uKqCqcSZprjXU7Gbn6 GGByc1kSL6reWsGSfRC5hpyGrly+yin6r7lC5qgGfo/2eztEbQxmDyJq3SY/nT0YPqQ4eB W2/MmMzt8ePHUsxGFq/pjsZ62S9wgY2N4Owc3ALIdrBDCd57s7meWecKsDQ5Tg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=EEbccEMK; 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"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qP0ZA-0000C1-I7; Thu, 27 Jul 2023 08:58:04 -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 1qP0Z8-0000BN-G8 for guix-patches@gnu.org; Thu, 27 Jul 2023 08:58:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qP0Z8-0002Vs-7r for guix-patches@gnu.org; Thu, 27 Jul 2023 08:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qP0Z8-00039f-3Y for guix-patches@gnu.org; Thu, 27 Jul 2023 08:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64896] [PATCH 1/8] gnu: Add python-hid. References: <20230727125446.8208-1-jean@foundationdevices.com> In-Reply-To: <20230727125446.8208-1-jean@foundationdevices.com> Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Jul 2023 12:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64896 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64896@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 64896-submit@debbugs.gnu.org id=B64896.169046267912119 (code B ref 64896); Thu, 27 Jul 2023 12:58:02 +0000 Received: (at 64896) by debbugs.gnu.org; 27 Jul 2023 12:57:59 +0000 Received: from localhost ([127.0.0.1]:40893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qP0Z5-00039O-0c for submit@debbugs.gnu.org; Thu, 27 Jul 2023 08:57:59 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:51253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qP0Z1-000399-MU for 64896@debbugs.gnu.org; Thu, 27 Jul 2023 08:57:57 -0400 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3174aac120aso961537f8f.2 for <64896@debbugs.gnu.org>; Thu, 27 Jul 2023 05:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1690462669; x=1691067469; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=75hhbhcU9bw0ke9iRtCWh+p8a32YXOjcBqZZAXriuE0=; b=EEbccEMKrLtSLr+jpSuMnEOLTfAGrfRS57UqKdx0CnN9vCaXDc/COlsONj17wUVmPj 6K+zzQ4COGNFlO5SOHqm6QngyJvw6r65NGi8JGmaHacXaTmLLlAnKi87yTmHQCrdO662 fM2D3ij3KWIsjAfQH7b0PNAxrAkzlEQOlYjisjKdkuaR87LqQrbSyXWRzX5Nmkxj4O6Q G/glJYhsCJZiIPA2KxiDMFD2PcX8l2BkFRht0ebpQyAf62jM0iVdu111KBYxDePK+Jnx MOZnleMTXd2exw9+qqMnr/zZEcW5ifPV3QGkQfTia5Yye+NCUFO/XXl9zxhCYGhHAxXy EpLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690462669; x=1691067469; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=75hhbhcU9bw0ke9iRtCWh+p8a32YXOjcBqZZAXriuE0=; b=JEXOheHTJca0r2VUNyNLsA/ORZjIlwZd7VXw40jIKzCe/kehwBS7CLegBVg5Z2tJe6 crfxzmh/YhN4ugUhi9nLMQQEwQklsbezvf0Vlj7M+1pZzWuRY+9u/P2To4u9bh290OWw x3f/WMI0ixLBvJKz5MB8rafvrpvXttFNZpsHUnUKpay0kgveIjmpCHw28dK6pctj4QMf 0Gr6lWJiGli+J7Xw8iB1zmq69a11CFWlhGap0eTk2uy1QCaJpowp4QFFdAxCpPEuEaJA NTAkIj6bnMgsnF1iHunSHU4hGQDUSadm6RMGMHgN+RRlrJBrAlamZ9FPygToY0wDpyD9 A0qQ== X-Gm-Message-State: ABy/qLa6DztRu5a6fyTA0W3sLJNZkrNH5DEwubZgmyc5F23L7Mrmkscp w2+eBBcARy5vyNVr3JOUYOVM3rSvoo5zghSy91bm/w== X-Google-Smtp-Source: APBJJlF3BsueBcar8vRvHheVNW5qBVzsWZpLeKv6VNOG8fQyB4ervLX0w6bSayANs7r1zgxMFKDNQg== X-Received: by 2002:adf:dcd0:0:b0:317:636b:fcb1 with SMTP id x16-20020adfdcd0000000b00317636bfcb1mr1595925wrm.27.1690462669451; Thu, 27 Jul 2023 05:57:49 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id v15-20020a5d4a4f000000b003143b7449ffsm2049800wrs.25.2023.07.27.05.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 05:57:49 -0700 (PDT) Date: Thu, 27 Jul 2023 14:57:34 +0200 Message-Id: <20230727125741.8766-1-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.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: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches From: Jean-Pierre De Jesus DIAZ via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.15 X-Spam-Score: -5.15 X-Migadu-Queue-Id: 4DA80451ED X-Migadu-Scanner: mx1.migadu.com X-TUID: +tB8Faf23p9T * gnu/packages/libusb.scm (python-hid): New variable. Signed-off-by: Jean-Pierre De Jesus DIAZ --- gnu/packages/libusb.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm index 13090d30ab..c80e7061ad 100644 --- a/gnu/packages/libusb.scm +++ b/gnu/packages/libusb.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2022 Jacob Hrbek ;;; Copyright © 2023 Sharlatan Hellseher +;;; Copyright © 2023 Foundation Devices, Inc. ;;; ;;; This file is part of GNU Guix. ;;; @@ -653,6 +654,42 @@ (define-public hidapi license:bsd-3 (license:non-copyleft "file://LICENSE-orig.txt"))))) +(define-public python-hid + (package + (name "python-hid") + (version "1.0.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "hid" version)) + (sha256 + (base32 + "1s5hvfbmnlmifswr5514f4xxn5rcd429bdcdqzgwkdxrg9zlx58y")))) + (build-system pyproject-build-system) + (arguments + ;; No tests present on the source tree, without this compilation fails + ;; because it "requires" the python-nose package, but it is not really + ;; necessary. + (list #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'add-extra-library-paths + (lambda _ + (let ((libhidapi-hidraw.so + #$(file-append hidapi "/lib/libhidapi-hidraw.so")) + (libhidapi-libusb.so + #$(file-append hidapi "/lib/libhidapi-libusb.so"))) + (substitute* "hid/__init__.py" + (("library_paths = \\(.*$" all) + (string-append + all + " '" libhidapi-hidraw.so "',\n" + " '" libhidapi-libusb.so "',\n"))))))))) + (inputs (list hidapi)) + (home-page "https://github.com/apmorton/pyhidapi") + (synopsis "Python @code{ctypes} bindings for HIDAPI library") + (description "Python @code{ctypes} bindings for HIDAPI library.") + (license license:expat))) + (define-public python-hidapi (package (name "python-hidapi") -- 2.34.1