re-add pyudev-0.23.2 (from main)

This commit is contained in:
Andreas Billmeier 2022-09-27 11:08:00 +02:00 committed by Andreas Billmeier
parent 50397970c8
commit eafa6730e7
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 67 additions and 8 deletions

View File

@ -523,7 +523,7 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 1903 Ebuilds in total, 1896 of them have in total 1908 (35 different) licenses assigned.
There are 1904 Ebuilds in total, 1897 of them have in total 1909 (35 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
@ -537,8 +537,8 @@ There are 1903 Ebuilds in total, 1896 of them have in total 1908 (35 different)
|GPL-3+|16|
|BSD-2|14|
|all-rights-reserved|14|
|LGPL-2.1|8|
|Unlicense|7|
|LGPL-2.1|7|
|EPL-1.0|5|
|public-domain|4|
|LGPL-2+|3|
@ -563,9 +563,9 @@ There are 1903 Ebuilds in total, 1896 of them have in total 1908 (35 different)
|CC-BY-NC-SA-4.0|1|
|CC0-1.0|1|
(Last counted: 23/09/2022)
(Last counted: 27/09/2022)
I did my best to keep these clean. If a valid license was published on PyPI, it has been automatically merged. Otherwise I took it from GitHub or alternatively from comments/files in the source. Sometimes these differed and have been not unique. All license strings are adjusted to the list in `/usr/portage/gentoo/licenses/`. Some packages do not have any license published. In this case, Authors have been asked for clarification, some did not respond. Following the [official Gentoo Guide](https://devmanual.gentoo.org/general-concepts/licenses/index.html), these then were added with an `all-rights-reserved` license and `RESTRICT="mirror"` was set. Find the appropriate licenses referenced in the Ebuild files and in the corresponding homepages or sources.
A big thanks goes to Iris for reviewing this README.
Last updated: 23/09/2022
Last updated: 27/09/2022

View File

@ -1,3 +1,5 @@
DIST pyudev-0.22.0.tar.gz 85077 BLAKE2B 66c78aa4d3bea5ceae3660a93e5bd1733629bb5228d67d8e647abb8c237a2786c1061b07e034be5467f5bcab58d95ba30f91d74bdc54cd8253dff69be3ad4a80 SHA512 a09ed479a54a1772a6af68cb975fef792068c2de3655e20223905bc3f574fd32bd3dbe6b97062eee3ab5f08a8b041ad3ea86dfb68c839ea44e29d65ec1686670
EBUILD pyudev-0.22.0-r1.ebuild 1415 BLAKE2B f6718d605a315a1599650e8669bafa85df4841bc552f2fff27e7025981c0ff3fc2322086e9f02ba805adc9cd25b92b4159e2b4470660d6d574e7cfc836b5b6c5 SHA512 32d592971e81ceb7336f80d50d1811f0d94d28d206691af98d7365d5c735699428829be6917c6698c7498f75b12c9b3f2804b374c7b5d307f17d258424106b8a
DIST pyudev-0.23.2.tar.gz 87199 BLAKE2B 0ce4300296f4fcc3a56ba4100d3ebe7734330b3096fde59475fe9880758a3279324c4c3df883b22d1ec9f4e0cfa83fc7c25fbe54ed03a5e019567595deb21211 SHA512 40b947d363dca73789f5ab77cbda4b48349e28fe04f2f5cafb93d20799d842ebeb2b7d78d1f16dcbcaac5c20aff1b931b372c75852706e731337e6e1d30b8538
EBUILD pyudev-0.22.0-r1.ebuild 1379 BLAKE2B aec6baf3f5250e4ea513f131be577af30eb9f3e891e1115e1c2ca8960c327e6d43e7fc4cb4be64fb27ef78a4d617561e1a8fc4eeea0bac95f5f3f6351803016c SHA512 1aa8c6b0132e39d08a470548bbf860a8c20ace2dd20efba61fcd4f1096c2cb391504c98fb5f660c2a92c4dda917dd9bcdc013c7574c1a2f13aab947f9c5be505
EBUILD pyudev-0.23.2.ebuild 1396 BLAKE2B 22951ce049d1ab7dbb45e9349bff9e6e0e2e98185776b1f4a6814e422c06b4ec1c3a75755ffaf985a485da7f0ed9f1289508f52bbfe6c7ba89d10b062869cbae SHA512 3a1c2a63b8a575bd77fb292960e3b674c111af44b56c511ea611ba8386c56d55e667ddd2f1592bce30f5cc1f1a14f94c10c3c329f4530e8ef38be6433db4d86f
MISC metadata.xml 503 BLAKE2B 94a63cc41dc755e87f4e94c4ac9211113aec2c90d4d1b6e2a201f9e4df3e3305480281870275cc4321508c87bdedad3b118df51e6a360007e11372c7298145fa SHA512 9a2050257e212ccdf432bb9a2917623c47df282cefb59b7ecef9688b0bb6904c13f9c589e36ca5f3fa29c61c2ccd2671106366d5a09082490da77a9bcf09c9e7

View File

@ -1,8 +1,8 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..10} )
EAPI=8
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
@ -12,7 +12,7 @@ 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 sparc x86"
KEYWORDS="amd64 arm arm64 x86"
IUSE="qt5"
# Known to fail on test system that aren't exactly the same devices as on CI

View File

@ -0,0 +1,57 @@
# 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="amd64 arm arm64 x86"
IUSE="qt5"
# Known to fail on test system that aren't exactly the same devices as on CI
RESTRICT="test"
RDEPEND="
dev-python/six[${PYTHON_USEDEP}]
virtual/udev
"
BDEPEND="
test? (
dev-python/docutils[${PYTHON_USEDEP}]
dev-python/hypothesis[${PYTHON_USEDEP}]
dev-python/mock[${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 -i -e "s|== \('/run/udev'\)|in (\1,'/dev/.udev')|g" \
tests/test_core.py || die
# disable use 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"
}