From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6MlzERm4w2SYLQAASxT56A (envelope-from ) for ; Fri, 28 Jul 2023 14:44:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YGNyEBm4w2TqTQAAG6o9tA (envelope-from ) for ; Fri, 28 Jul 2023 14:44:09 +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 B10B26EAF9 for ; Fri, 28 Jul 2023 14:44:08 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=HVL5e4DM; 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=1690548248; 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=Edkdhkd62UAsSdftRoBvNIJk3lyW3SF1TgC1MsqmnmQJRMQO4VxLGrL02w3ITGldGCqVqh EMOBpo1hTH05Rwxjx+NXDLVZt0DUVo6nDIROUE298VFp5WDiVFdj2mLVDPmojaV4ySxSx5 d9rkfQD37MoKi6dy/80GgKXb34mcJsqKKUjiOWqoCTwjRXG8lVYgzffJL6MC/2hLPd2Wm5 NQYHDITtF/zfBKnz73jOzURCBN3NoZcim/Sn0B0+mlua321dqba11RscWui9IBX5ofuAfM N3NuJ0y0u/afsPIcB+UB1e9R0tH0fWRSjNFdbxxtY+9/RM5qkMWrycnQFW58TA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=HVL5e4DM; 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-Seal: i=1; s=key1; d=yhetil.org; t=1690548248; a=rsa-sha256; cv=none; b=DXpNADxSV9s8IunlFqMNJcmjlAbEzboYfdqTlKuqqrJbR4LwdR4PxZI/InI0QQraJ1SN02 +lRRzycJMV9d/ov1JrbzeOaINQH2QNEaPbH3gM3EpKHSQr3ll5MXo1x4ODG74s7ZFyRKBG ffc6Ikk3V+U6mKkurteHF/7ebd0I9dqHgGNcLxESmSzoZ1uAt9C/PUTY72F9a/AYgWWI3L r8xn1krvwWvr37arSfn5n15q4TGmYX08iCbyIKCJms1dPUXjJ1EFNtlMsjKaa9ROG5n8aU a9RkzGXNdm7EtKgxq1yXoDFZUZt3WLr1al8QxihjGtuAWzMgo2ETpb/ZBcq+xw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPMWn-0003FL-GA; Fri, 28 Jul 2023 08:25:05 -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 1qPMWm-0003Db-0C for guix-patches@gnu.org; Fri, 28 Jul 2023 08:25:04 -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 1qPMWl-0007oo-ME for guix-patches@gnu.org; Fri, 28 Jul 2023 08:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPMWl-0007LG-HG for guix-patches@gnu.org; Fri, 28 Jul 2023 08:25:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64896] [PATCH v2 1/8] gnu: Add python-hid. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Jul 2023 12:25:03 +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.169054705928056 (code B ref 64896); Fri, 28 Jul 2023 12:25:03 +0000 Received: (at 64896) by debbugs.gnu.org; 28 Jul 2023 12:24:19 +0000 Received: from localhost ([127.0.0.1]:44009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPMW3-0007IK-6u for submit@debbugs.gnu.org; Fri, 28 Jul 2023 08:24:19 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:44232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPMVy-0007HP-Sb for 64896@debbugs.gnu.org; Fri, 28 Jul 2023 08:24:16 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-314417861b9so1922301f8f.0 for <64896@debbugs.gnu.org>; Fri, 28 Jul 2023 05:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1690547049; x=1691151849; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=75hhbhcU9bw0ke9iRtCWh+p8a32YXOjcBqZZAXriuE0=; b=HVL5e4DMxFHZ8C2bbIzZGoaquvd95Am27lh+WvfaKy/cE2SjtbSJJLLZIGc1wZY2fY IWA5BWuy4SazznTIjxYdu6e+sdkKkNVHh+zX6QQuq4qleCrW2vWPXgdF9Uy+Htv7kZ79 vqYIi3BXFvunxc6UaCVi6fyZAmHezbRJozA4pg4jMPnE9/en3N1p0kNfMLDJahkFuaPu bQICiyTy9duGnHKv7S0uAJsPmc41pKYlZQGt0hdS9visjqLEMfeeBo6XXQUyEk3E9EXG Xb8j9n31pdbEqVyeFuGpmGP94YHKEmw6YI5WVSrxqWVBwYt+t81CBTH1mLZo4XCiCfiC qWtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690547049; x=1691151849; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=75hhbhcU9bw0ke9iRtCWh+p8a32YXOjcBqZZAXriuE0=; b=LK96giPup5fm8B+3VRucDhAP/UIdjyX0KfvnL1qqALdLG35Fl+hkEIqWNCltxOIZRT b5Med60pi4mouL0fSvtwBeMjJkK6fXp7HrQO7aCiI702/tMSgtPmB3hlpCRhWhsEJRNl pw30O4+AGpSwiJ+6bcan15pe6UfPfNfGl97++BvfBH7rT9phcxjPVhl+RzU4+rFgEpWR YnW3bv2xYVizEPaljEvVMfOuPN4GNCydhskZpZGq5WacrieVN8CIUKqjTcXAPXX6Ilr4 JsXj6GV+oyzxHF5/wL2yDgueLBOS6GyAsV2RNDJPFKTcr0ZLUrINn8DC0UGCzQukRlPB GDUA== X-Gm-Message-State: ABy/qLYUnYfAXAIV5qrw0JMv3JLq5ynn3aiohK/9rM7J+IaPINPJcMFU MWT/OUcuFUhXquEoIR+IQB+QHBZr9bVsWi7Zg6Q6tQ== X-Google-Smtp-Source: APBJJlF0bgOugxx4jSUoB8P7f0JbYwvImU8Q/tRXj5ckFop5cemlsnSHBfSlOD6cpL4XqdEl8YbCHQ== X-Received: by 2002:a5d:4941:0:b0:313:e953:65d0 with SMTP id r1-20020a5d4941000000b00313e95365d0mr1811077wrs.28.1690547049051; Fri, 28 Jul 2023 05:24:09 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id x2-20020adfffc2000000b0031755da6a8asm4667210wrs.33.2023.07.28.05.24.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 05:24:08 -0700 (PDT) Date: Fri, 28 Jul 2023 14:23:56 +0200 Message-Id: <20230728122403.10140-2-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230728122403.10140-1-jean@foundationdevices.com> References: <20230728122403.10140-1-jean@foundationdevices.com> 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-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.64 X-Migadu-Queue-Id: B10B26EAF9 X-Migadu-Spam-Score: -6.64 X-Migadu-Scanner: mx0.migadu.com X-TUID: GVpXkxQorzlt * 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