diff --git a/dev-python/librt/Manifest b/dev-python/librt/Manifest index 2fb0c9e89935a..a158e718861f0 100644 --- a/dev-python/librt/Manifest +++ b/dev-python/librt/Manifest @@ -2,3 +2,5 @@ DIST librt-0.11.0.tar.gz 200139 BLAKE2B b7e80bfddad285f75337341bb39b3efedc2904a7 DIST librt-0.11.0.tar.gz.provenance 9607 BLAKE2B 1f7f54262eed9212b80eed64ff8b412cc5aead788c8c0745ba375b050f50062ca6f7305298e040b1b0f0d09b56e57d6dd209e1b1468b7c3a0ef5a90fa8cde335 SHA512 3c5d9d0edfadb06db252d313e793d41026c2c0982af34038cea647a4e7bce9ff2fc31857982811d46d191149b97d1d1fe39909573567033b7ed85fdad612d236 DIST librt-0.12.0.tar.gz 203841 BLAKE2B ecffe50e4d5bb0ecc6e3b040dd22a4229a2ba38b25f92cf5aa8347bb31bbfc2d8230dacc3856830df55e682ee4942e16e2fdf16784c7f226a7461346bc666801 SHA512 c97d222420c445240af08549fa8e27ef68f2144e81e43a5ab1e1423e0c85500257d5d6d0ecef7ecb530a435e6cb584efc43a30f31d2a0483a16593ebfae16c4e DIST librt-0.12.0.tar.gz.provenance 9823 BLAKE2B 4285b4401f1b2c47cfb412ad0c9ec35445e215f979fa998cfc1ff86788e22a9da4d5a2107f684064377cdee291f4bbbd8022771de4c949a7481966df7748e23f SHA512 e4a36d16fb9378e499426e74fac3b2cf18af2f8b95aac1bb6182a49b40783d9534095369d2bb827238947c44034334c53a0058de345966df77cccacd1471019d +DIST librt-0.13.0.tar.gz 211402 BLAKE2B 765dad1880048eee8884b87623f664f8b641f418dbb5c3a4e9906cae9f1f0827d67259016e7391b311c1bc6213dbdce8d9f8b3d377a0118210873a2492f1fc62 SHA512 c86e17b5a06193b7e937b0a496adbecb0a76c2ccc0d58a833050e5d47c748f0677356befdc315e90b81e015e83c0418d2e5782c3061e64acfd061f6f80d91e97 +DIST librt-0.13.0.tar.gz.provenance 9729 BLAKE2B b6e38cf63e41464b44a0ec3b1264c95d43e4870becbaf0cfd9340e67572f52c2ab326a93dc772b06865dfe2097a9ccdc58f6ddf0a846df2d2f56cbbf1ef721e9 SHA512 51132f126419e1d690390ddc44583eb82de0475a47a86b6af09ea643c63d4028be7ad35f92b55e7d43e9daa8d302b032c7c1d2529a59329166df3f8bf118305f diff --git a/dev-python/librt/librt-0.13.0.ebuild b/dev-python/librt/librt-0.13.0.ebuild new file mode 100644 index 0000000000000..dd10dd0872b65 --- /dev/null +++ b/dev-python/librt/librt-0.13.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 2025-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_VERIFY_REPO=https://github.com/mypyc/librt +PYTHON_COMPAT=( python3_{12..15} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Mypyc runtime library" +HOMEPAGE=" + https://github.com/mypyc/librt/ + https://pypi.org/project/librt/ +" + +LICENSE="MIT PSF-2.4" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + test? ( + dev-python/mypy-extensions[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +python_compile() { + # setuptools is broken for C extensions, bug #907718, bug #967476 etc. + distutils-r1_python_compile -j1 +} + +python_test() { + rm -rf librt || die + epytest smoke_tests.py +}