summaryrefslogtreecommitdiff
path: root/dev-python/keyutils
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/keyutils')
-rw-r--r--dev-python/keyutils/Manifest1
-rw-r--r--dev-python/keyutils/keyutils-0.6-r2.ebuild40
-rw-r--r--dev-python/keyutils/metadata.xml9
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/keyutils/Manifest b/dev-python/keyutils/Manifest
new file mode 100644
index 000000000000..ede0964a7001
--- /dev/null
+++ b/dev-python/keyutils/Manifest
@@ -0,0 +1 @@
+DIST python-keyutils-0.6.gh.tar.gz 45427 BLAKE2B b62a1194bad87fe42c658c0603ff236e8e5594e8d19dbf8b29bac5b2ef5b3c6a6d19eae3d529c9408e06802c883fad365d41d27c656776a4994b58a43b8bf1fc SHA512 e282d553a644d9b38c6256e027ee553a123bf21e4222491e22699ca5bc5041dedc4e9a9a8c1bafa44985f3b1d5fafd85ded9ed5332b6d94d6c62f3fa6bcb6d0d
diff --git a/dev-python/keyutils/keyutils-0.6-r2.ebuild b/dev-python/keyutils/keyutils-0.6-r2.ebuild
new file mode 100644
index 000000000000..63862c11f4af
--- /dev/null
+++ b/dev-python/keyutils/keyutils-0.6-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2021-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="A set of python bindings for keyutils"
+HOMEPAGE="https://github.com/sassoftware/python-keyutils/"
+SRC_URI="
+ https://github.com/sassoftware/python-keyutils/archive/${PV}.tar.gz
+ -> python-keyutils-${PV}.gh.tar.gz
+"
+S="${WORKDIR}/python-keyutils-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+
+BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
+DEPEND="sys-apps/keyutils"
+RDEPEND="${DEPEND}"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ default
+ sed -i -e '/pytest-runner/d' setup.py || die
+ rm keyutils/_keyutils.c || die
+}
+
+python_test() {
+ ln -s "${S}"/test "${BUILD_DIR}"/test || die
+ cd "${BUILD_DIR}" || die
+ distutils-r1_python_test
+}
diff --git a/dev-python/keyutils/metadata.xml b/dev-python/keyutils/metadata.xml
new file mode 100644
index 000000000000..5d076c5281ef
--- /dev/null
+++ b/dev-python/keyutils/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bkohler@gentoo.org</email>
+ <name>Ben Kohler</name>
+ </maintainer>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>