Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#54891 - [i2c-tools] add smbus python3 support, update to 3.1.2

Attached to Project: Community Packages
Opened by Sebastiaan Lokhorst (lonaowna) - Thursday, 20 July 2017, 21:05 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 12 August 2017, 14:23 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Currently, the i2c-tools package contains the 'smbus' python2 module. It would be great to have the same module for python3. Unfortunately, the module doesn't build for python3 with our source.

The Debian i2c-tools package (version 3.1.2) has python3 support.[1] I'm not sure who has released 3.1.2 (original upstream or Debian), but it seems to me we can just use the archive that Debian uses.[2]

[1] https://packages.debian.org/stretch/python3-smbus
[2] http://http.debian.net/debian/pool/main/i/i2c-tools/i2c-tools_3.1.2.orig.tar.bz2
This task depends upon

Closed by  Jelle van der Waa (jelly)
Saturday, 12 August 2017, 14:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 3.1.2-1
Comment by Eli Schwartz (eschwartz) - Friday, 21 July 2017, 02:07 GMT
Hmm, it appears Debian uses the sources hosted by one of the developers: http://jdelvare.nerim.net/devel.html
Comment by Sebastiaan Lokhorst (lonaowna) - Saturday, 05 August 2017, 10:55 GMT
@eschwartz, nice find! It seems a safe choice anyway, as there were just minor changes (mainly the python file).

In case the maintainer is interested, here's a working PKGBUILD:
https://gist.github.com/slokhorst/3160a1896d1a615c2ac9b0774bec6140

Loading...