[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: gnu: Add python-smbus.
From: |
guix-commits |
Subject: |
04/07: gnu: Add python-smbus. |
Date: |
Wed, 27 Sep 2023 18:07:22 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit ab8290c06af242579c01c72219d11eea453c2dae
Author: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
AuthorDate: Wed Sep 20 12:05:25 2023 +0200
gnu: Add python-smbus.
* gnu/packages/linux.scm (python-smbus): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/linux.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 85e3d9845d..6eb7fb43b8 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -75,6 +75,7 @@
;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2023 dan <i@dan.games>
+;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -188,6 +189,7 @@
#: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)
@@ -4963,6 +4965,29 @@ SMBus access.")
#~(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" #$(this-package-input "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")
- branch master updated (bab1d1704d -> d0438fcf65), guix-commits, 2023/09/27
- 02/07: gnu: Add blinkenlights., guix-commits, 2023/09/27
- 05/07: gnu: python-pyusb: Use G-Expressions., guix-commits, 2023/09/27
- 01/07: tests: ‘rewrite-url’ test no longer depends on network access., guix-commits, 2023/09/27
- 03/07: gnu: Add qdl., guix-commits, 2023/09/27
- 06/07: gnu: python-pyusb: Add libusb-compat backend., guix-commits, 2023/09/27
- 07/07: gnu: Add liquidctl., guix-commits, 2023/09/27
- 04/07: gnu: Add python-smbus.,
guix-commits <=