From 28587a7ad4569a4f56a0fb204497da7b9b6a7642 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 12 Jan 2023 06:21:38 +0000 Subject: dev-python/pywlroots: new package, add 0.15.24 Bug: https://bugs.gentoo.org/846380 Signed-off-by: Sam James --- dev-python/pywlroots/Manifest | 1 + ...pywlroots-0.15.24-no-import-version-check.patch | 13 +++++++ dev-python/pywlroots/metadata.xml | 11 ++++++ dev-python/pywlroots/pywlroots-0.15.24.ebuild | 44 ++++++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 dev-python/pywlroots/Manifest create mode 100644 dev-python/pywlroots/files/pywlroots-0.15.24-no-import-version-check.patch create mode 100644 dev-python/pywlroots/metadata.xml create mode 100644 dev-python/pywlroots/pywlroots-0.15.24.ebuild diff --git a/dev-python/pywlroots/Manifest b/dev-python/pywlroots/Manifest new file mode 100644 index 000000000000..42da54f56046 --- /dev/null +++ b/dev-python/pywlroots/Manifest @@ -0,0 +1 @@ +DIST pywlroots-0.15.24.gh.tar.gz 85570 BLAKE2B 0c7ba0be6159152488785298028bb1feec20e2380357060a850dab417b3fb1fccb4a9e6cc6564d2b7f124bf4fc454789549267e9036b0b4559e5fcd4c6f06196 SHA512 b29b76cf18a65b2ef19d15ecf018a9ba44119d60ee61435967d17f06d5f7544d2117f2e9a81574734c71591a237b00c8584a5cc6d6adb928f39f11170f21ee94 diff --git a/dev-python/pywlroots/files/pywlroots-0.15.24-no-import-version-check.patch b/dev-python/pywlroots/files/pywlroots-0.15.24-no-import-version-check.patch new file mode 100644 index 000000000000..eb0cce91ac35 --- /dev/null +++ b/dev-python/pywlroots/files/pywlroots-0.15.24-no-import-version-check.patch @@ -0,0 +1,13 @@ +https://github.com/flacjacket/gentoo-overlay/blob/master/dev-python/pywlroots/files/pywlroots-no_version_check.patch + +This causes sandbox failures in e.g. qtile on importing pywlroots. +--- a/wlroots/ffi_build.py ++++ b/wlroots/ffi_build.py +@@ -44,6 +44,7 @@ def load_wlroots_version(): + + def check_version(): + """Check for wlroots version compatibility""" ++ return + # When importing a system-level installed package, we may not be able to + # create neighboring files, which is done by the `.verify` step. If this + # error is hit, we check with the compiled `wlroots.lib`. diff --git a/dev-python/pywlroots/metadata.xml b/dev-python/pywlroots/metadata.xml new file mode 100644 index 000000000000..34ba1c191606 --- /dev/null +++ b/dev-python/pywlroots/metadata.xml @@ -0,0 +1,11 @@ + + + + + python@gentoo.org + + + flacjacket/pywlroots + pywlroots + + diff --git a/dev-python/pywlroots/pywlroots-0.15.24.ebuild b/dev-python/pywlroots/pywlroots-0.15.24.ebuild new file mode 100644 index 000000000000..5bd07ae0e059 --- /dev/null +++ b/dev-python/pywlroots/pywlroots-0.15.24.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="Python binding to the wlroots library using cffi" +HOMEPAGE=" + https://github.com/flacjacket/pywlroots + https://pypi.org/project/pywlroots/ +" +SRC_URI=" + https://github.com/flacjacket/pywlroots/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +# See README for wlroots dep +RDEPEND=" + >=dev-python/pywayland-0.4.14[${PYTHON_USEDEP}] + >=dev-python/xkbcommon-0.2[${PYTHON_USEDEP}] + =gui-libs/wlroots-$(ver_cut 1-2)*:= +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.15.24-no-import-version-check.patch +) + +distutils_enable_tests pytest + +python_test() { + # No die deliberately as sometimes it doesn't exist + rm -r wlroots + + epytest +} -- cgit v1.2.3-65-gdbad