python-smbus-cffi: new package
PATCH 1/1 python-smbus-cffi: new package
--- package/Config.in | 1 + package/python-smbus-cffi/Config.in | 9 +++++++++ package/python-smbus-cffi/python-smbus-cffi.hash | 3 +++ package/python-smbus-cffi/python-smbus-cffi.mk | 15 +++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 package/python-smbus-cffi/Config.in create mode 100644 package/python-smbus-cffi/python-smbus-cffi.hash create mode 100644 package/python-smbus-cffi/python-smbus-cffi.mk
package/Config.in +1 -0
@@ -700,6 +700,7 @@ menu "External python modules" source "package/python-singledispatch/Config.in" source "package/python-sip/Config.in" source "package/python-six/Config.in" + source "package/python-smbus-cffi/Config.in" source "package/python-spidev/Config.in" source "package/python-thrift/Config.in" source "package/python-tornado/Config.in"
package/python-smbus-cffi/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_SMBUS_CFFI + bool "python-smbus-cffi" + select BR2_PACKAGE_PYTHON_CFFI + help + This Python module allows SMBus access through the I2C /dev + interface on Linux hosts. The host kernel must have I2C + support, I2C device interface support, and a bus adapter driver. + + https://github.com/bivab/smbus-cffi
package/python-smbus-cffi/python-smbus-cffi.hash new file +3 -0
@@ -0,0 +1,3 @@ +# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=f621c871bd658ee665751ad78e3b2df9, sha256 locally computed +md5 f621c871bd658ee665751ad78e3b2df9 smbus-cffi-0.5.1.tar.gz +sha256 fb4195aaabfc01586863f60d3190b5cb1bf8f12622fd597e23e48768dad6bde8 smbus-cffi-0.5.1.tar.gz
package/python-smbus-cffi/python-smbus-cffi.mk new file +15 -0
@@ -0,0 +1,15 @@ +################################################################################ +# +# python-smbus-cffi +# +################################################################################ + +PYTHON_SMBUS_CFFI_VERSION = 0.5.1 +PYTHON_SMBUS_CFFI_SOURCE = smbus-cffi-$(PYTHON_SMBUS_CFFI_VERSION).tar.gz +PYTHON_SMBUS_CFFI_SITE = https://pypi.python.org/packages/source/s/smbus-cffi +PYTHON_SMBUS_CFFI_SETUP_TYPE = setuptools +PYTHON_SMBUS_CFFI_LICENSE = GPLv2+ +PYTHON_SMBUS_CFFI_LICENSE_FILES = LICENSE +PYTHON_SMBUS_CFFI_DEPENDENCIES = host-python-cffi + +$(eval $(python-package))
Signature · 1 line
2.1.4
PATCH 1/1 python-smbus-cffi: new package
Quoted 69 lines · Yegor Yefremov
Signed-off-by Yegor Yefremov <[email protected]>--- package/Config.in | 1 + package/python-smbus-cffi/Config.in | 9 +++++++++ package/python-smbus-cffi/python-smbus-cffi.hash | 3 +++ package/python-smbus-cffi/python-smbus-cffi.mk | 15 +++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 package/python-smbus-cffi/Config.in create mode 100644 package/python-smbus-cffi/python-smbus-cffi.hash create mode 100644 package/python-smbus-cffi/python-smbus-cffi.mkpackage/Config.in +1
-0@@ -700,6 +700,7 @@ menu "External python modules" source "package/python-singledispatch/Config.in" source "package/python-sip/Config.in" source "package/python-six/Config.in" + source "package/python-smbus-cffi/Config.in" source "package/python-spidev/Config.in" source "package/python-thrift/Config.in" source "package/python-tornado/Config.in"package/python-smbus-cffi/Config.in new file +9
-0@@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_SMBUS_CFFI + bool "python-smbus-cffi" + select BR2_PACKAGE_PYTHON_CFFI + help + This Python module allows SMBus access through the I2C /dev + interface on Linux hosts. The host kernel must have I2C + support, I2C device interface support, and a bus adapter driver. + + https://github.com/bivab/smbus-cffipackage/python-smbus-cffi/python-smbus-cffi.hash new file +3
-0@@ -0,0 +1,3 @@ +# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=f621c871bd658ee665751ad78e3b2df9, sha256 locally computed +md5 f621c871bd658ee665751ad78e3b2df9 smbus-cffi-0.5.1.tar.gz +sha256 fb4195aaabfc01586863f60d3190b5cb1bf8f12622fd597e23e48768dad6bde8 smbus-cffi-0.5.1.tar.gzpackage/python-smbus-cffi/python-smbus-cffi.mk new file +15
-1@@ -0,0 +1,15 @@ +################################################################################ +# +# python-smbus-cffi +# +################################################################################ + +PYTHON_SMBUS_CFFI_VERSION = 0.5.1 +PYTHON_SMBUS_CFFI_SOURCE = smbus-cffi-$(PYTHON_SMBUS_CFFI_VERSION).tar.gz +PYTHON_SMBUS_CFFI_SITE = https://pypi.python.org/packages/source/s/smbus-cffi +PYTHON_SMBUS_CFFI_SETUP_TYPE = setuptools +PYTHON_SMBUS_CFFI_LICENSE = GPLv2+ +PYTHON_SMBUS_CFFI_LICENSE_FILES = LICENSE +PYTHON_SMBUS_CFFI_DEPENDENCIES = host-python-cffi + +$(eval $(python-package)) --
Quoted 2 lines
2.1.4
This package has following patch dependencies:
http://lists.busybox.net/pipermail/buildroot/2015-December/148396.html
http://lists.busybox.net/pipermail/buildroot/2015-December/148190.html
http://lists.busybox.net/pipermail/buildroot/2015-December/148191.html
Yegor
PATCH 1/1 python-smbus-cffi: new package
In reply to Yegor YefremovHi Yegor,
package/python-smbus-cffi/Config.in line 3
Quoted 3 lines · Yegor Yefremov
package/python-smbus-cffi/Config.in new file +3
-0+config BR2_PACKAGE_PYTHON_SMBUS_CFFI + bool "python-smbus-cffi" + select BR2_PACKAGE_PYTHON_CFFI
You don't add python-cffi to <pkg>_DEPENDENCIES below. Is this a run-time dependency? If so please add a comment to clarify that.
[snip]
package/python-smbus-cffi/python-smbus-cffi.mk line 15
Quoted 9 lines
package/python-smbus-cffi/python-smbus-cffi.mk new file +9
-0+PYTHON_SMBUS_CFFI_VERSION = 0.5.1 +PYTHON_SMBUS_CFFI_SOURCE = smbus-cffi-$(PYTHON_SMBUS_CFFI_VERSION).tar.gz +PYTHON_SMBUS_CFFI_SITE = https://pypi.python.org/packages/source/s/smbus-cffi +PYTHON_SMBUS_CFFI_SETUP_TYPE = setuptools +PYTHON_SMBUS_CFFI_LICENSE = GPLv2+ +PYTHON_SMBUS_CFFI_LICENSE_FILES = LICENSE +PYTHON_SMBUS_CFFI_DEPENDENCIES = host-python-cffi + +$(eval $(python-package))
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 1/1 python-smbus-cffi: new package
Hi Baruch,
Quoted 9 lines · Baruch Siach
Hi Yegor,
package/python-smbus-cffi/Config.in line 3
Quoted 3 lines · Yegor Yefremov
package/python-smbus-cffi/Config.in new file +3
-0+config BR2_PACKAGE_PYTHON_SMBUS_CFFI + bool "python-smbus-cffi" + select BR2_PACKAGE_PYTHON_CFFIYou don't add python-cffi to <pkg>_DEPENDENCIES below. Is this a run-time dependency? If so please add a comment to clarify that.
Yes, python-cffi is a run-time dependency and host-python-cffi is a build-time dependency. I'll send v2.
Quoted 18 lines
[snip]
package/python-smbus-cffi/python-smbus-cffi.mk line 15
Quoted 9 lines
package/python-smbus-cffi/python-smbus-cffi.mk new file +9
-0+PYTHON_SMBUS_CFFI_VERSION = 0.5.1 +PYTHON_SMBUS_CFFI_SOURCE = smbus-cffi-$(PYTHON_SMBUS_CFFI_VERSION).tar.gz +PYTHON_SMBUS_CFFI_SITE = https://pypi.python.org/packages/source/s/smbus-cffi +PYTHON_SMBUS_CFFI_SETUP_TYPE = setuptools +PYTHON_SMBUS_CFFI_LICENSE = GPLv2+ +PYTHON_SMBUS_CFFI_LICENSE_FILES = LICENSE +PYTHON_SMBUS_CFFI_DEPENDENCIES = host-python-cffi + +$(eval $(python-package))baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
PATCH 1/1 python-smbus-cffi: new package
In reply to Yegor YefremovDear Yegor Yefremov,
Quoted 10 lines · Yegor Yefremov
Signed-off-by Yegor Yefremov <[email protected]>--- package/Config.in | 1 + package/python-smbus-cffi/Config.in | 9 +++++++++ package/python-smbus-cffi/python-smbus-cffi.hash | 3 +++ package/python-smbus-cffi/python-smbus-cffi.mk | 15 +++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 package/python-smbus-cffi/Config.in create mode 100644 package/python-smbus-cffi/python-smbus-cffi.hash create mode 100644 package/python-smbus-cffi/python-smbus-cffi.mk
Even though this patch was no longer in patchwork, I applied it as I used it as a test case for the python-cffi stuff.
I had to fix the license though:
[Thomas:
- fix license, it's GPLv2, not GPLv2+.]
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com