unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Wicki Gabriel (wicg)" <wicg@zhaw.ch>
To: 67197@debbugs.gnu.org
Cc: "me@bonfacemunyoki.com" <me@bonfacemunyoki.com>,
	"jgart@dismail.de" <jgart@dismail.de>,
	"lars@6xq.net" <lars@6xq.net>, "marius@gnu.org" <marius@gnu.org>
Subject: [bug#67197] [PATCH] gnu: Add python-smbus2.
Date: Wed, 15 Nov 2023 17:02:08 +0000	[thread overview]
Message-ID: <ZR0P278MB0268E466AE6541FEB597B6D0C1B1A@ZR0P278MB0268.CHEP278.PROD.OUTLOOK.COM> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2 bytes --]



[-- Attachment #1.2: Type: text/html, Size: 419 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-smbus2.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-python-smbus2.patch", Size: 1680 bytes --]

From eb6a95d3915c3f7785c8e411764c60d39a7ac609 Mon Sep 17 00:00:00 2001
Message-ID: <eb6a95d3915c3f7785c8e411764c60d39a7ac609.1700067600.git.wicg@zhaw.ch>
From: Gabriel Wicki <gabriel@erlikon.ch>
Date: Wed, 15 Nov 2023 17:58:02 +0100
Subject: [PATCH] gnu: Add python-smbus2.

* gnu/packages/python-xyz.scm (python-smbus2): New variable.

Change-Id: Ia43f4a0720e8137fba0632dc021babb3bfac590b
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e521c1580d..0f838528dc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3016,6 +3016,26 @@ (define-public python-caniusepython3
 a library.")
     (license license:asl2.0)))
 
+(define-public python-smbus2
+  (package
+    (name "python-smbus2")
+    (version "0.4.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "smbus2" version))
+       (sha256
+        (base32
+         "0fl0dazyg78yqz4lljd252kva3l8ip4lw95jlyvkqdhsis52iwin"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/kplindegaard/smbus2")
+    (synopsis "Drop-in replacement for smbus-cffi/smbus-python in pure Python")
+    (description "This package provides a Python library to access
+@acronym{I2C, Inter-Integrated Circuit} and @acronym{SMBus, System +
+Management Bus} devices on Linux.  It is functionally equivalent to
+python-smbus and provides the same interface and syntax.")
+    (license license:expat)))
+
 (define-public python-diskcache
   (package
     (name "python-diskcache")

base-commit: 7e6580670bc615d89d0216ebddfb6ba81feb0238
-- 
2.41.0


                 reply	other threads:[~2023-11-15 17:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZR0P278MB0268E466AE6541FEB597B6D0C1B1A@ZR0P278MB0268.CHEP278.PROD.OUTLOOK.COM \
    --to=wicg@zhaw.ch \
    --cc=67197@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    --cc=lars@6xq.net \
    --cc=marius@gnu.org \
    --cc=me@bonfacemunyoki.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).