From 4838179ca7d98d33885dae9805e0a3b7e7f9055f Mon Sep 17 00:00:00 2001 From: popoviciri Date: Sat, 27 Jul 2019 12:28:27 +0200 Subject: [PATCH 1/2] add python-pantilthat from pimoroni --- configs/raspberrypi2_defconfig | 1 + configs/raspberrypi3_defconfig | 1 + configs/raspberrypi_defconfig | 1 + package/Config.in | 1 + package/python-pantilthat/Config.in | 8 ++++++++ package/python-pantilthat/python-pantilthat.hash | 3 +++ package/python-pantilthat/python-pantilthat.mk | 13 +++++++++++++ 7 files changed, 28 insertions(+) create mode 100644 package/python-pantilthat/Config.in create mode 100644 package/python-pantilthat/python-pantilthat.hash create mode 100644 package/python-pantilthat/python-pantilthat.mk diff --git a/configs/raspberrypi2_defconfig b/configs/raspberrypi2_defconfig index f006c9c0c9..0475171eaf 100644 --- a/configs/raspberrypi2_defconfig +++ b/configs/raspberrypi2_defconfig @@ -80,6 +80,7 @@ BR2_PACKAGE_RPI_USERLAND=y BR2_PACKAGE_USB_MODESWITCH_DATA=y BR2_PACKAGE_PYTHON_HASHLIB=y BR2_PACKAGE_PYTHON_JINJA2=y +BR2_PACKAGE_PYTHON_PANTILTHAT=y BR2_PACKAGE_PYTHON_PICAMERA=y BR2_PACKAGE_PYTHON_PILLOW=y BR2_PACKAGE_PYTHON_PYCURL=y diff --git a/configs/raspberrypi3_defconfig b/configs/raspberrypi3_defconfig index 0e9c92b211..36534fc597 100644 --- a/configs/raspberrypi3_defconfig +++ b/configs/raspberrypi3_defconfig @@ -80,6 +80,7 @@ BR2_PACKAGE_RPI_USERLAND=y BR2_PACKAGE_USB_MODESWITCH_DATA=y BR2_PACKAGE_PYTHON_HASHLIB=y BR2_PACKAGE_PYTHON_JINJA2=y +BR2_PACKAGE_PYTHON_PANTILTHAT=y BR2_PACKAGE_PYTHON_PICAMERA=y BR2_PACKAGE_PYTHON_PILLOW=y BR2_PACKAGE_PYTHON_PYCURL=y diff --git a/configs/raspberrypi_defconfig b/configs/raspberrypi_defconfig index 8f879528a7..ae688b40bf 100644 --- a/configs/raspberrypi_defconfig +++ b/configs/raspberrypi_defconfig @@ -87,6 +87,7 @@ BR2_PACKAGE_RPI_USERLAND=y BR2_PACKAGE_USB_MODESWITCH_DATA=y BR2_PACKAGE_PYTHON_HASHLIB=y BR2_PACKAGE_PYTHON_JINJA2=y +BR2_PACKAGE_PYTHON_PANTILTHAT=y BR2_PACKAGE_PYTHON_PICAMERA=y BR2_PACKAGE_PYTHON_PILLOW=y BR2_PACKAGE_PYTHON_PYCURL=y diff --git a/package/Config.in b/package/Config.in index 633d8803f1..2bbd3b0559 100644 --- a/package/Config.in +++ b/package/Config.in @@ -953,6 +953,7 @@ menu "External python modules" source "package/python-oauthlib/Config.in" source "package/python-paho-mqtt/Config.in" source "package/python-pam/Config.in" + source "package/python-pantilthat/Config.in" source "package/python-paramiko/Config.in" source "package/python-passlib/Config.in" source "package/python-pathlib2/Config.in" diff --git a/package/python-pantilthat/Config.in b/package/python-pantilthat/Config.in new file mode 100644 index 0000000000..679562e1be --- /dev/null +++ b/package/python-pantilthat/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_PYTHON_PANTILTHAT + bool "python-pantilthat" + select BR2_PACKAGE_PYTHON_SPIDEV + select BR2_PACKAGE_PYTHON_RPI_GPIO + help + Python library for driving Pimoroni PanTiltHAT! + + https://github.com/pimoroni/pantilt-hat diff --git a/package/python-pantilthat/python-pantilthat.hash b/package/python-pantilthat/python-pantilthat.hash new file mode 100644 index 0000000000..5c8b8b4f72 --- /dev/null +++ b/package/python-pantilthat/python-pantilthat.hash @@ -0,0 +1,3 @@ +# md5, sha256 from https://pypi.org/pypi/pantilthat/json +md5 ae1ec7f99db10a81572ba702161763dd pantilthat-0.0.7.tar.gz +sha256 812afa45d0220f6ef28a36b87a01ef816c5bd1c545f1783bd9aaf47056e4e696 pantilthat-0.0.7.tar.gz diff --git a/package/python-pantilthat/python-pantilthat.mk b/package/python-pantilthat/python-pantilthat.mk new file mode 100644 index 0000000000..0365cf4c59 --- /dev/null +++ b/package/python-pantilthat/python-pantilthat.mk @@ -0,0 +1,13 @@ +################################################################################ +# +# python-pantilthat +# +################################################################################ + +PYTHON_PANTILTHAT_VERSION = 0.0.7 +PYTHON_PANTILTHAT_SOURCE = pantilthat-$(PYTHON_PANTILTHAT_VERSION).tar.gz +PYTHON_PANTILTHAT_SITE = https://files.pythonhosted.org/packages/c7/e1/3d5403cf568b5232ca04d8c90e82af4486f1a2f34e1ce82babab40820b0e +PYTHON_PANTILTHAT_SETUP_TYPE = setuptools +PYTHON_PANTILTHAT_LICENSE = MIT + +$(eval $(python-package)) From f205439382cef5debda7d25e8dd477c01f3676dd Mon Sep 17 00:00:00 2001 From: popoviciri Date: Sat, 27 Jul 2019 18:19:53 +0200 Subject: [PATCH 2/2] included in rpi4 config --- configs/raspberrypi4_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/raspberrypi4_defconfig b/configs/raspberrypi4_defconfig index 412d133633..a51bda6ef3 100644 --- a/configs/raspberrypi4_defconfig +++ b/configs/raspberrypi4_defconfig @@ -80,6 +80,7 @@ BR2_PACKAGE_RPI_USERLAND=y BR2_PACKAGE_USB_MODESWITCH_DATA=y BR2_PACKAGE_PYTHON_HASHLIB=y BR2_PACKAGE_PYTHON_JINJA2=y +BR2_PACKAGE_PYTHON_PANTILTHAT=y BR2_PACKAGE_PYTHON_PICAMERA=y BR2_PACKAGE_PYTHON_PILLOW=y BR2_PACKAGE_PYTHON_PYCURL=y