From patchwork Wed Sep 13 09:55:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 53780 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 DBE1027BBE9; Wed, 13 Sep 2023 10:57:24 +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 21EDA27BBE2 for ; Wed, 13 Sep 2023 10:57:20 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgMcE-000350-Qd; Wed, 13 Sep 2023 05:56:58 -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 1qgMcD-00034I-JQ for guix-patches@gnu.org; Wed, 13 Sep 2023 05:56:57 -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 1qgMcD-0002o1-Bq for guix-patches@gnu.org; Wed, 13 Sep 2023 05:56:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgMcI-0008PE-Fh for guix-patches@gnu.org; Wed, 13 Sep 2023 05:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65911] [PATCH 1/4] gnu: Add python-smbus. References: <20230913095341.12586-1-jean@foundationdevices.com> In-Reply-To: <20230913095341.12586-1-jean@foundationdevices.com> Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2023 09:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65911 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65911@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 65911-submit@debbugs.gnu.org id=B65911.169459897632221 (code B ref 65911); Wed, 13 Sep 2023 09:57:02 +0000 Received: (at 65911) by debbugs.gnu.org; 13 Sep 2023 09:56:16 +0000 Received: from localhost ([127.0.0.1]:60851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgMbY-0008Nd-1D for submit@debbugs.gnu.org; Wed, 13 Sep 2023 05:56:16 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:58810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgMbV-0008NM-NR for 65911@debbugs.gnu.org; Wed, 13 Sep 2023 05:56:14 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-401b393df02so77073125e9.1 for <65911@debbugs.gnu.org>; Wed, 13 Sep 2023 02:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1694598962; x=1695203762; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dbBgquOEIpysy3u1yAc0ZRp+5s+3U9NUC3uqUdyAfjs=; b=SG4leC0cnARDrYFg77sGCh5V5VPcMU7cx+CuaBtm/eDlweYvlBGPG2DE2chGD4rteW /YRgwMuWcGK7A68FVJJlsgHJssd81NaPllFMw04OE3KBSzWuk5UYqusucUYe7gV2zo+8 dS+sKJ2P/fQltYavtM7oseEoNY4JhNtE62v2cIjVH/HyslVxRmeOzvYOk34cE3P1PZn2 iO8iQ1/2jM7U053HgyCyc8u4Z7SxFcgmbTqqkxhxEI3maj1tvrPAKAkrA2nEtOzBJ/b8 qcCWbDeOM7GIBZy8xbi9E5znpAepMOCj3GZaur8Icsjwl/5OsKWDy0W6/bZjxSFHxN0K zNeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694598962; x=1695203762; 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=dbBgquOEIpysy3u1yAc0ZRp+5s+3U9NUC3uqUdyAfjs=; b=NsG95TMAuyQVnWbqgvvkr1TPJpxwMh3zS93mGs+Qyu0gMLs1VjZpG+3QtVTQqZ9MgF VlMneOrPXtDGek/n1CAlBdHsAMPY+NYT2tbfRYomCH9I03XpNIYogAoSJ2bFWks/wwqP 9oDrwCTqmv52Xszx5AoijKTOz9L5MD81nflrFDsQq0Kzw65y0O38OIU/5rdP8kOnOmLx c2XLdCL2GxW60mzrHb9PgQA1m88s8reoGClxQKRyLqDaqBsGFUWetweivDNWoq+Mo829 UtMRGNLDb3MhdVrucXx8jt6mEvRfrpaQSxJX7Cj5ahlAfdhhxC2TGlpRSw2f/SitUiqM 32uA== X-Gm-Message-State: AOJu0YxwN7HOatrj28ksLx3F+8ZgIDnA0Aeqos090YRzz0N31dV1WA1u cB6oJU1nWf4NlUlfetFYVN2OZkF87D2c1EQNDzIYIg== X-Google-Smtp-Source: AGHT+IHQ3QDRkzWQBDFz5wO44bfwNjP7KtarJr0H9o+pI5Wb43IUPKba0RWTDcKqPam4ruL/SfYRiw== X-Received: by 2002:a05:600c:204d:b0:3fa:77ed:9894 with SMTP id p13-20020a05600c204d00b003fa77ed9894mr1683941wmg.7.1694598962336; Wed, 13 Sep 2023 02:56:02 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id x14-20020a1c7c0e000000b003fe2b081661sm1577675wmc.30.2023.09.13.02.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 02:56:02 -0700 (PDT) Date: Wed, 13 Sep 2023 11:55:56 +0200 Message-Id: <20230913095559.12676-1-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 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: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (python-smbus): New variable. Signed-off-by: Jean-Pierre De Jesus DIAZ --- gnu/packages/linux.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 36354b4d82..e57ab866c6 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -75,6 +75,7 @@ ;;; Copyright © 2023 Yovan Naumovski ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2023 dan +;;; Copyright © 2023 Foundation Devices, Inc. ;;; ;;; This file is part of GNU Guix. ;;; @@ -188,6 +189,7 @@ (define-module (gnu packages linux) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system meson) + #:use-module (guix build-system pyproject) #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module (guix build-system linux-module) @@ -4921,6 +4923,28 @@ (define-public i2c-tools-3 #~(list (string-append "prefix=" #$output) (string-append "CC=" #$(cc-for-target)))))))) +(define-public python-smbus + (package + (inherit i2c-tools) + (name "python-smbus") + (build-system pyproject-build-system) + (arguments + (list #:tests? #f ;; No test suite. + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'change-directory + (lambda _ (chdir "py-smbus"))) + (add-after 'change-directory 'set-library-path + (lambda _ + (substitute* "setup.py" + (("-L\\.\\./lib") + (string-append "-L" #$i2c-tools "/lib")))))))) + (inputs (list i2c-tools)) + (synopsis "I2C/SMBus access for Python") + (description "This package provides a Python library to access +@acronym{I2C, Inter-Integrated Circuit} and @acronym{SMBus, System +Management Bus} devices on Linux."))) + (define-public xsensors (package (name "xsensors")