diff --git a/dev-python/py-landlock/Manifest b/dev-python/py-landlock/Manifest new file mode 100644 index 0000000000000..c15a1bb7a9fd3 --- /dev/null +++ b/dev-python/py-landlock/Manifest @@ -0,0 +1 @@ +DIST py-landlock-0.1.1.gh.tar.gz 33866 BLAKE2B 5322edc645818aabe14970f90994f98bb2c5b79f74f52a95af90a07ed32986e22efc8ea91e68f6b0a8c1b928c89bfc8fe5c3ea1192aee3f2d836c271ea5106f6 SHA512 b6504203b91f162b6e0a60ccdc651484a0296e26b6fb7a5fe3308d3da49cd17023bf27a8031ea12a10eb3622b96758e5073856579e6b94d845fa4ae5af059600 diff --git a/dev-python/py-landlock/metadata.xml b/dev-python/py-landlock/metadata.xml new file mode 100644 index 0000000000000..77b8f8410ee12 --- /dev/null +++ b/dev-python/py-landlock/metadata.xml @@ -0,0 +1,13 @@ + + + + + python@gentoo.org + Python + + + + py-landlock + SebastienWae/py-landlock + + diff --git a/dev-python/py-landlock/py-landlock-0.1.1.ebuild b/dev-python/py-landlock/py-landlock-0.1.1.ebuild new file mode 100644 index 0000000000000..b6cd588788ed1 --- /dev/null +++ b/dev-python/py-landlock/py-landlock-0.1.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{12..15} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for the Linux Landlock security module" +HOMEPAGE=" + https://pypi.org/project/py-landlock/ + https://github.com/SebastienWae/py-landlock +" +SRC_URI="https://github.com/SebastienWae/py-landlock/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +EPYTEST_DESELECT=( + # tries to load an executable, with rule not aloowing libgcc.so.1 + "tests/e2e/test_filesystem_sandbox.py::TestFilesystemSandboxE2E::test_execute_allowed_succeeds" +) +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +src_prepare() { + default + + cat <<-EOF >> "${S}/pyproject.toml" + [build-system] + requires = ["hatchling"] + build-backend = "hatchling.build" + EOF +}