Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for pimoroni's pantilthat #2016

Merged
merged 2 commits into from
Aug 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions configs/raspberrypi2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions configs/raspberrypi3_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions configs/raspberrypi4_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions configs/raspberrypi_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions package/python-pantilthat/Config.in
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions package/python-pantilthat/python-pantilthat.hash
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions package/python-pantilthat/python-pantilthat.mk
Original file line number Diff line number Diff line change
@@ -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))