From 7106f0c041755ca4c71809192ae38e6cbe022f22 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Wed, 12 Jun 2024 10:57:49 +0800 Subject: python3-netaddr: upgrade 1.2.1 -> 1.3.0 Changelog: ========== - Add partial address expansion in IPNetwork via the expand_partial switch, this enables opting into pre-1.1.0 behavior - Fix running the test suite on musl systems - Fix IPAddress IPv6 parsing with ZEROFILL enabled - Fix handling of the NOHOST flag in the IPNetwork copy constructor Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-netaddr_1.3.0.bb | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb (limited to 'meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb') diff --git a/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb b/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb new file mode 100644 index 0000000000..b8a772566a --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb @@ -0,0 +1,25 @@ +SUMMARY = "A network address manipulation library for Python." +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=8afa43eca873b71d5d85dd0be1f707fa" + +SRC_URI[sha256sum] = "5c3c3d9895b551b763779ba7db7a03487dc1f8e3b385af819af341ae9ef6e48a" + +inherit pypi python_setuptools_build_meta ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/netaddr/tests/* ${D}${PTEST_PATH}/tests/ +} + +do_install_ptest:append:libc-musl () { + sed -i -e "/--automake/ s/$/ -k 'not test_strategy_ipv6'/" ${D}${PTEST_PATH}/run-ptest +} -- cgit v1.2.3-54-g00ecf