From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 SFkbEYWHAWWUeQEAG6o9tA:P1 (envelope-from ) for ; Wed, 13 Sep 2023 11:57:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SFkbEYWHAWWUeQEAG6o9tA (envelope-from ) for ; Wed, 13 Sep 2023 11:57:25 +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 2A1833E520 for ; Wed, 13 Sep 2023 11:57:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=SG4leC0c; 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=1694599040; 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=dbBgquOEIpysy3u1yAc0ZRp+5s+3U9NUC3uqUdyAfjs=; b=SpIkomz6W84zw1rydyWhXh3ofxXbzgt7x2c7IZP81hvDUAb+yo8vEU75xL3y6eJ45KjtHe aFN0z19T2hWDuM3pC4v81Fv3N1qwK5Zll4JurtAzb75UMhjoSnufxOyF/i6DkrO4z2yGre C73HJtEDh8QZMHqlYzn9Fcrdn56U1bgen0dXb/0RnRi9844DL24SnYCsoLpU1YT8+5kY6t Can8D7piy+oXU0jWfXh0yTKHlyAL+qZep5j0IKhljV/TZuXADde/0NU09KWs+pJwtNWbvU kzRe917fTc+jRYNBKbwY/HFa/bVsRLahqMP0gGJ5iGJNPYdnQafqBJ2xPKhu2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=SG4leC0c; 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=1694599040; a=rsa-sha256; cv=none; b=GZQzwK/DI9LhoV0DVUJn8svCuhfBema9LMAGLCu6toIOijWxx53U1wwmJVrg+6x7nJXfgQ nox9kcWVMX8YgXZZhnNrl2n1SLsfyFH772Y8tDvqUCv6BqujHrg+4H7/3YLEPBwP5AifCK u73KALSCCspeut1ecJ9qzqu2+bb3zF6dGrPEfu5ZleLS2SlXJmuLKlT9RC3XI64il69ZH/ VsriJMLFO5612g8p2GsP+lIz5jwAHz9asLDjl9Updo75IjgHURKEee2Y895dLBHP6ig53m vN/A/1hXwyvPLzDYUjRa9jwyYmDrh43UAGzj5CSwU+j2KRcNwcLIjfig1wyhbA== 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 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-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -1.91 X-Spam-Score: -1.91 X-Migadu-Queue-Id: 2A1833E520 X-TUID: UxSodZWNQ7io * 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") -- 2.34.1