diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-26 02:51:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-26 02:51:21 +0100 |
commit | ea6ec22f536553dcd417bc8b577418d3ebe5ce4c (patch) | |
tree | 318c03426d27d596f62898b46d48f5f6af2b070e /dev-python/pyudev | |
parent | 1ab3970274a99b42f555ca7959efe9ace063abd5 (diff) |
gentoo auto-resync : 26:08:2022 - 02:51:21
Diffstat (limited to 'dev-python/pyudev')
-rw-r--r-- | dev-python/pyudev/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pyudev/pyudev-0.24.0.ebuild | 53 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/pyudev/Manifest b/dev-python/pyudev/Manifest index 6fbe74ffd24b..0bc4ca00d41f 100644 --- a/dev-python/pyudev/Manifest +++ b/dev-python/pyudev/Manifest @@ -1,3 +1,5 @@ DIST pyudev-0.23.2.tar.gz 87199 BLAKE2B 0ce4300296f4fcc3a56ba4100d3ebe7734330b3096fde59475fe9880758a3279324c4c3df883b22d1ec9f4e0cfa83fc7c25fbe54ed03a5e019567595deb21211 SHA512 40b947d363dca73789f5ab77cbda4b48349e28fe04f2f5cafb93d20799d842ebeb2b7d78d1f16dcbcaac5c20aff1b931b372c75852706e731337e6e1d30b8538 +DIST pyudev-0.24.0.tar.gz 85887 BLAKE2B 82f23a1bbcd8ce5dd9e6f0551d967e7209067541185410668944734a5f0e17a907d6143cee81decb868d64cf8a0fe642dba7dc600f5ae3f03d9487f882d0aef3 SHA512 c711053a58cd857aff9e1df116ff11cfc17426d9f5a092810403150bec36239213a87b428bc31ec862b75b64a027f2d21081e15f76d914b67a9ddf39b0b73379 EBUILD pyudev-0.23.2.ebuild 1439 BLAKE2B 399c7dff384a4ca53b02a822cc3291f6d6ccabfb6965bc368ad0c11d7cbf2fe5f56e8ff9f5202dab723acc5574d8201e49719f39bcee2bf678dd1ba59f795211 SHA512 22fa81be3998cd43d4ed122588a336cf88672deecc39c9cd35e748a99ed48159e50d6ca4ab880952526eb41cad46d19b94be1773ed7cbc96f265169570632eda +EBUILD pyudev-0.24.0.ebuild 1377 BLAKE2B 826df3e60dd6d8a558992eb12c5b49cd340dd9e4bbe01916f52879c3ce048a153f7dc98f2f74e14db6dd418bd1bcfa69d18f9c34b82540ffab8a0d266d3ca545 SHA512 81c10e574ccfd7ecdccd7211677ff7877b05406844f64d7248caacf8df79debf49b77331da95b12d4174a409dce027348dcb4afb28e7e1183c75c5dd9c8270d1 MISC metadata.xml 705 BLAKE2B 5668637e59e1d434d0a72d0856e7ed614a2f5a3371e3fa4e841f4d516228f8b8a5567bc6a91cb07c8ee1f9c14db76ce238adac5bdab987a810adc2aed994b5a7 SHA512 a73f8225942c597d02ed08d3dc03724858f33cc07a2d9fcde64fe20f5c4263d1b7510e26e6365af120b72e7c8ebb075b7606dde493fe6464db2a585a23ca4b6a diff --git a/dev-python/pyudev/pyudev-0.24.0.ebuild b/dev-python/pyudev/pyudev-0.24.0.ebuild new file mode 100644 index 000000000000..ca4c6d46a0be --- /dev/null +++ b/dev-python/pyudev/pyudev-0.24.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) +inherit distutils-r1 optfeature + +DESCRIPTION="Python binding to libudev" +HOMEPAGE="https://pyudev.readthedocs.io/en/latest/ https://github.com/pyudev/pyudev" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~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" +} |