diff options
Diffstat (limited to 'dev-python/pywayland')
-rw-r--r-- | dev-python/pywayland/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pywayland/pywayland-0.4.18.ebuild | 55 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/pywayland/Manifest b/dev-python/pywayland/Manifest index fd6ce1d8b572..0ffddb73752d 100644 --- a/dev-python/pywayland/Manifest +++ b/dev-python/pywayland/Manifest @@ -1,3 +1,5 @@ DIST pywayland-0.4.17.gh.tar.gz 61171 BLAKE2B f190107ab361ec9c0a568d22a104fa06a7e52a348a6226c30c2ae542b77e5b21b4a389ad745efb864b58cff9e77cb22ff43fd6614859cb138d398a84b99614a5 SHA512 9ca1e30b56f6d1447744451d15d84041d5ce6ce64811ca0e395822731f0c7cd1d8571f640b89771d8f5e9da1d82385734974e10e68ccecffc0f9600a83d2478b +DIST pywayland-0.4.18.gh.tar.gz 62703 BLAKE2B d44858fb70b2a2d5e3a4f23766c1f00e255ea2fdbe3e5da47d2a114dfb6c4bd6951d971653db9727f54c3e697acb83d65446c08e670f32686520e35d6051e35c SHA512 cf46e3fed04a30eff4bb8293857fc9e874394bbd214b94cc2f73424e3c64d1c4a5df125189163e57d2b17017feb1e919588291e06c84acdc2e4479315b400932 EBUILD pywayland-0.4.17.ebuild 1089 BLAKE2B 7d479c3fa3badd10fa8bb4dca541d00833e60fae1458b74f1d6cddf99093082e940302a2556d7194a21837cf514a7df1aac60e4b658646d3f353b098f3d76feb SHA512 82f25c7e07c5600d41f18c0e2cceb5b69cf906691f5ff1a7c860c12c47a48321bce4b1d771ee31942aba631da1a636286885e50477232b759b75920af4a96d14 +EBUILD pywayland-0.4.18.ebuild 1090 BLAKE2B 099cd8cee902cf644c9fec0be49846a8e705e6e5f954a85c27d2cd2245f0b1996b8781db684a01c59f0b4c666a3dda2b8c1a937dece94fdf381ed565aa85aa37 SHA512 08370eaf0576a50fb41f4ed5c3ae1e1017476b137cd257b8e9f0c67b43a27c750b86673194a54c7a26f7ee0013996a4103dd150be9541b5ed2ee595013c1a078 MISC metadata.xml 351 BLAKE2B 51bf5663be6335bdc8644039f9a4b8e20a0304495bfe6a3cce703766f41636b0d9ee9dfe490b0ea695f68f34a20dfe8097d5872b56cda0c721baf2488dc8ddce SHA512 7b6c3e8c6125ddcf660cc0518de7d0887db40424bf5ed02e892d871cfb2fb0786dcf14bcab38b277528ac0aa454f483508e4c0b22c90799c6fc3526f33abd5a4 diff --git a/dev-python/pywayland/pywayland-0.4.18.ebuild b/dev-python/pywayland/pywayland-0.4.18.ebuild new file mode 100644 index 000000000000..2157e2935d60 --- /dev/null +++ b/dev-python/pywayland/pywayland-0.4.18.ebuild @@ -0,0 +1,55 @@ +# Copyright 2023-2024 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_{10..13} pypy3 ) + +inherit distutils-r1 xdg-utils + +DESCRIPTION="Python bindings for the libwayland library" +HOMEPAGE=" + https://pywayland.readthedocs.io/en/latest/ + https://github.com/flacjacket/pywayland + https://pypi.org/project/pywayland/ +" +SRC_URI=" + https://github.com/flacjacket/pywayland/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" + +RDEPEND=" + dev-libs/wayland + $(python_gen_cond_dep ' + dev-python/cffi[${PYTHON_USEDEP}] + ' 'python*') +" +DEPEND=" + ${RDEPEND} + dev-libs/wayland-protocols +" +BDEPEND=" + dev-util/wayland-scanner +" + +distutils_enable_tests pytest + +python_prepare_all() { + # Needed for tests (XDG_RUNTIME_DIR) + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_test() { + # No die deliberately as sometimes it doesn't exist + rm -rf pywayland || die + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} |