Files
meta-openembedded/meta-python/recipes-devtools/python/python3-typing-inspection_0.4.4.bb
Ross Burton 0a583b3502 recipes: update for PYPI_PACKAGE change
The pypi class has slightly changed the semantics of the PYPI_PACKAGE
variable[1], now PYPI_PACKAGE is the normalised package name and the new
variable PYPI_PACKAGE_SDIST is used when the source tarball doesn't match.

Update recipes as appropriate: this is mostly deleting now-redundant
assignments but some assignments are still needed where packages are not
uploaded using the modern standards.

[1] oe-core 98049bf86b6 ("classes/pypi: change PYPI_PACKAGE to be normalised")

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-10-08 22:27:01 -07:00

26 lines
1.2 KiB
BlitzBasic

SUMMARY = "Runtime typing introspection tools"
HOMEPAGE = "https://github.com/pydantic/typing-inspection"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dfe2d84c58973d6a532c4e7638dbb3d8"
DEPENDS = "python3-hatchling-native"
inherit pypi python_hatchling ptest-python-pytest
SRC_URI[sha256sum] = "547274fa6b0a561ccf549cc9524b999a578e737d015d8709d021f9d0d13bea47"
RDEPENDS:${PN}-ptest += "python3-typing-extensions"
do_install_ptest:append() {
# test_literal_values_unhashable_type asserts that duplicate unhashable
# Literal values (e.g. Literal[[1, 'a'], [1, 'a']]) are preserved, but
# CPython 3.13.15+ deduplicates unhashable Literal args at construction
# time (https://github.com/python/cpython/pull/153914). Upstream fixed
# this the same way starting in 0.4.4 by skipping the test on newer
# Python; backport that same guard here since we're pinned to 0.4.2.
sed -i \
-e "/^def test_literal_values_unhashable_type/i @pytest.mark.skipif(sys.version_info >= (3, 13, 15), reason='Unhashable arguments are deduplicated (https://github.com/python/cpython/pull/153914)')" \
${D}${PTEST_PATH}/tests/introspection/test_literal_values.py
}
BBCLASSEXTEND += "native nativesdk"