python3-idna-ssl: Fix upstream check by specifying the UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX

Consolidated inc into the recipe to remove a unneeded layer of indirection

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Derek Straka 2023-09-27 05:35:18 +00:00 committed by Khem Raj
parent 9600507356
commit e594a78435
2 changed files with 17 additions and 17 deletions

View File

@ -1,15 +0,0 @@
SUMMARY = "Patch ssl.match_hostname for Unicode(idna) domains support"
HOMEPAGE = "https://github.com/aio-libs/idna-ssl"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a61b9c5aec8796b64a6bf15d42605073"
SRC_URI[md5sum] = "dd44ec53bac36e68446766fd8d3835bd"
SRC_URI[sha256sum] = "a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c"
PYPI_PACKAGE = "idna-ssl"
inherit pypi
RDEPENDS:${PN} += " \
python3-idna \
python3-io \
"

View File

@ -1,2 +1,17 @@
inherit setuptools3
require python-idna-ssl.inc
SUMMARY = "Patch ssl.match_hostname for Unicode(idna) domains support"
HOMEPAGE = "https://github.com/aio-libs/idna-ssl"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a61b9c5aec8796b64a6bf15d42605073"
SRC_URI[sha256sum] = "a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c"
PYPI_PACKAGE = "idna-ssl"
inherit pypi setuptools3
UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/idna_ssl/"
UPSTREAM_CHECK_REGEX = "/idna_ssl/(?P<pver>(\d+[\.\-_]*)+)"
RDEPENDS:${PN} += " \
python3-idna \
python3-io \
"