diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-04-29 08:58:02 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-04-29 08:58:15 +0300 |
commit | 4be20d6fad20a96b1231eeca86b4cc7e0bff95a6 (patch) | |
tree | 90138fcf70b5b7fe1f5378ad4606d8c6d4e18521 /dev-python | |
parent | media-sound/sonata: Fix a typo in metadata.xml (diff) | |
download | gentoo-4be20d6fad20a96b1231eeca86b4cc7e0bff95a6.tar.gz gentoo-4be20d6fad20a96b1231eeca86b4cc7e0bff95a6.tar.bz2 gentoo-4be20d6fad20a96b1231eeca86b4cc7e0bff95a6.zip |
dev-python/pyudev: add 0.24.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pyudev/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pyudev/pyudev-0.24.1.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/pyudev/Manifest b/dev-python/pyudev/Manifest index 5c7dc36e748b..38e056b6be2e 100644 --- a/dev-python/pyudev/Manifest +++ b/dev-python/pyudev/Manifest @@ -1 +1,2 @@ DIST pyudev-0.24.0.tar.gz 85887 BLAKE2B 82f23a1bbcd8ce5dd9e6f0551d967e7209067541185410668944734a5f0e17a907d6143cee81decb868d64cf8a0fe642dba7dc600f5ae3f03d9487f882d0aef3 SHA512 c711053a58cd857aff9e1df116ff11cfc17426d9f5a092810403150bec36239213a87b428bc31ec862b75b64a027f2d21081e15f76d914b67a9ddf39b0b73379 +DIST pyudev-0.24.1.tar.gz 85963 BLAKE2B 86c6d04691c99671735915564f58b4ef892e45925047487500bc7005343db7145941dde270f4ce9279881bd9bbf203965082d54b34b396febff52f387a1c26ac SHA512 10e32d9a74884000fbf8b86bee60530f6e7b936b990e7ae3b76099ace71834602de404721101c1076ef57365622a9a8f4819d57f58508ced09a21b7d50326886 diff --git a/dev-python/pyudev/pyudev-0.24.1.ebuild b/dev-python/pyudev/pyudev-0.24.1.ebuild new file mode 100644 index 000000000000..e1c823ec5738 --- /dev/null +++ b/dev-python/pyudev/pyudev-0.24.1.ebuild @@ -0,0 +1,52 @@ +# 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 optfeature pypi + +DESCRIPTION="Python binding to libudev" +HOMEPAGE="https://pyudev.readthedocs.io/en/latest/ https://github.com/pyudev/pyudev" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="qt5" + +# Known to fail on test system that aren't exactly the same devices as on CI +RESTRICT="test" + +RDEPEND="virtual/udev" +BDEPEND=" + test? ( + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + ) +" + +DOCS=( CHANGES.rst README.rst ) + +distutils_enable_tests pytest + +python_prepare_all() { + if use test; then + ewarn "If your PORTAGE_TMPDIR is longer in length then '/var/tmp/'," + ewarn "change it to /var/tmp to ensure tests will pass." + fi + + # tests are known to pass then fail on alternate runs + # tests: fix run_path + sed -e "s|== \('/run/udev'\)|in (\1,'/dev/.udev')|g" \ + -i tests/test_core.py || die + + # disable usage of hypothesis timeouts (too short) + sed -e '/@settings/s/(/(deadline=None,/' -i tests{,/_device_tests}/*.py || die + + distutils-r1_python_prepare_all +} + +pkg_postinst() { + optfeature "PyQt5 bindings" "dev-python/PyQt5" +} |