summaryrefslogtreecommitdiff
path: root/meta-raspberrypi/recipes-devtools/python/rpi-gpio_0.7.0.bb
blob: 039d1769e842fa5ac8697c743d9d10f84897d85b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DESCRIPTION = "A module to control Raspberry Pi GPIO channels"
HOMEPAGE = "https://sourceforge.net/projects/raspberry-gpio-python/"
SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=9b95630a648966b142f1a0dcea001cb7"

PYPI_PACKAGE = "RPi.GPIO"

inherit pypi setuptools3

SRC_URI += "file://0001-Remove-nested-functions.patch \
            file://0001-setup.py-Use-setuptools-instead-of-distutils.patch \
           "
SRC_URI[sha256sum] = "7424bc6c205466764f30f666c18187a0824077daf20b295c42f08aea2cb87d3f"

COMPATIBLE_MACHINE = "^rpi$"

# ignore issues with -fno-common from gcc-10 until it's fixed in upstream:
# https://sourceforge.net/p/raspberry-gpio-python/tickets/187/
CFLAGS += "-fcommon"