dev-python/py-landlock: new package, add 0.1.1

Will be required by pkgcheck, maybe more.

For now we use this dep, but if we notice it having missing APIs or arch
compat, we might replace it with Gentoo lib maintained by us.

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-09-05 12:18:51 +03:00
parent a535b9e64d
commit 91e4f6a2b0
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST py-landlock-0.1.1.gh.tar.gz 33866 BLAKE2B 5322edc645818aabe14970f90994f98bb2c5b79f74f52a95af90a07ed32986e22efc8ea91e68f6b0a8c1b928c89bfc8fe5c3ea1192aee3f2d836c271ea5106f6 SHA512 b6504203b91f162b6e0a60ccdc651484a0296e26b6fb7a5fe3308d3da49cd17023bf27a8031ea12a10eb3622b96758e5073856579e6b94d845fa4ae5af059600

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">py-landlock</remote-id>
<remote-id type="github">SebastienWae/py-landlock</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -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
}