summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2017-04-27 07:08:34 -0400
committerTim Harder <radhermit@gentoo.org>2017-04-27 07:13:36 -0400
commit519686cebdd00281e206bad475749868c1341b12 (patch)
treec6913985736b0bba3e026bff38ad8b5190a7e3d4 /dev-python/pyudev
parentprofiles: mask www-apache/mod_authnz_persona for removal (diff)
downloadgentoo-519686cebdd00281e206bad475749868c1341b12.tar.gz
gentoo-519686cebdd00281e206bad475749868c1341b12.tar.bz2
gentoo-519686cebdd00281e206bad475749868c1341b12.zip
dev-python/pyudev: version bump to 0.21.0
Rename the pyqt4 USE flag to qt4 and add the qt5 USE flag.
Diffstat (limited to 'dev-python/pyudev')
-rw-r--r--dev-python/pyudev/Manifest1
-rw-r--r--dev-python/pyudev/metadata.xml13
-rw-r--r--dev-python/pyudev/pyudev-0.20.0.ebuild4
-rw-r--r--dev-python/pyudev/pyudev-0.21.0.ebuild56
4 files changed, 67 insertions, 7 deletions
diff --git a/dev-python/pyudev/Manifest b/dev-python/pyudev/Manifest
index 584ff00fb106..f2c7dbf42bd8 100644
--- a/dev-python/pyudev/Manifest
+++ b/dev-python/pyudev/Manifest
@@ -1,3 +1,4 @@
DIST pyudev-0.16.1.tar.gz 74953 SHA256 765d1c14bd9bd031f64e2612225621984cb2bbb8cbc0c03538bcc4c735ff1c95 SHA512 7f62c6794027411583f874bdf746de457f19048955867d30008bc1ee0d30040a97f73b9e52ae3645d469fc401128703d4e703e294b85481e927ffaba27e45e6a WHIRLPOOL 4c366a1eed92bf274ef84eab6242beb09cd6e906556f6ccb24113fafec2dcc47b8da94487505473fc6f7b39539cdc2809cef2d07a1ab8c0616fc73efba9b2e1a
DIST pyudev-0.19.0.tar.gz 96556 SHA256 5abcbd03e4965110d1fedcbdd5532974cb4638ceef34337aa2d5758eceb54ad3 SHA512 7faee69e8e3512e27b0d9271191d4b2906652b2c7f3a803be026a10499d184c1fc41db80624dec9f33ee890d71a695214c6bfd47f6cc41b979f71f619836f3f8 WHIRLPOOL 6b496f0f977b97247a13ba4f9f8efe24624d932c6cfc7616922473d8839a90500f60d3b238bbab4a9c9cdd6c5997606ee41de63669e3b2fa868d1b6f28ae492b
DIST pyudev-0.20.0.tar.gz 93217 SHA256 14d85bc9611dbf798732996cb7107858f58a3a1b9d246e4063c7a20ade65842a SHA512 e86a776a2b6d29f206cdd0057c6f9b1e705d981ec8c2de49259887647856531af68238b80751102a3ffc8cea6f234cc520d62c8bc2da686e453ed010da3ebb02 WHIRLPOOL 8344c668c1cc2e7971a67d0e628e3ce96254648ad06b48f260dd4ee54e3e205e533e59b692169b38dd656c08d8cd615d0c7c518b5c2a785553b8c6468e70520c
+DIST pyudev-0.21.0.tar.gz 89469 SHA256 094b7a100150114748aaa3b70663485dd360457a709bfaaafe5a977371033f2b SHA512 ba5b6156768b65b9655d809b14378b01173643781b9c4017271e880cdfed442c44ac49eb26c970e4275b820e01678e3001870591fccf88dc713ec941e2b85d11 WHIRLPOOL e69865d8b33ab103e0ff6371df4e05617c3907cbfc98d508285c7464065ccace6dc7d4e963035e19392e6ab39881281e684ddd4f7765fc599874411204ea825b
diff --git a/dev-python/pyudev/metadata.xml b/dev-python/pyudev/metadata.xml
index 1b784f0e87d4..f42881a0924b 100644
--- a/dev-python/pyudev/metadata.xml
+++ b/dev-python/pyudev/metadata.xml
@@ -5,12 +5,15 @@
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
- <longdescription lang="en">pyudev is a Python binding to libudev, the hardware management
- library and service found in modern linux systems.</longdescription>
+ <longdescription lang="en">
+ pyudev is a Python binding to libudev, the hardware management library
+ and service found in modern linux systems.
+ </longdescription>
<use>
- <flag name="pygobject">Install PyGobject binding</flag>
- <flag name="pyqt4">Install PyQt4 binding</flag>
- <flag name="pyside">Install PySide binding</flag>
+ <flag name="pygobject">Install PyGobject bindings</flag>
+ <flag name="qt4">Install PyQt4 bindings</flag>
+ <flag name="qt5">Install PyQt5 bindings</flag>
+ <flag name="pyside">Install PySide bindings</flag>
</use>
<upstream>
<remote-id type="pypi">pyudev</remote-id>
diff --git a/dev-python/pyudev/pyudev-0.20.0.ebuild b/dev-python/pyudev/pyudev-0.20.0.ebuild
index 21759235ae96..7151171a71aa 100644
--- a/dev-python/pyudev/pyudev-0.20.0.ebuild
+++ b/dev-python/pyudev/pyudev-0.20.0.ebuild
@@ -14,12 +14,12 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 arm ~arm64 x86"
-IUSE="pygobject pyqt4 pyside test"
+IUSE="pygobject qt4 pyside test"
RDEPEND="virtual/udev
dev-python/six[${PYTHON_USEDEP}]
pygobject? ( dev-python/pygobject:2[$(python_gen_usedep 'python2*')] )
- pyqt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] )
+ qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] )
pyside? ( dev-python/pyside[$(python_gen_usedep '!(python3_3)')] )"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
diff --git a/dev-python/pyudev/pyudev-0.21.0.ebuild b/dev-python/pyudev/pyudev-0.21.0.ebuild
new file mode 100644
index 000000000000..ac3b0ab16602
--- /dev/null
+++ b/dev-python/pyudev/pyudev-0.21.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python binding to libudev"
+HOMEPAGE="http://pyudev.readthedocs.org 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="pygobject qt4 qt5 pyside test"
+REQUIRED_USE="pygobject? ( || ( $(python_gen_useflags 'python2*') ) )"
+
+RDEPEND="virtual/udev
+ dev-python/six[${PYTHON_USEDEP}]
+ pygobject? ( dev-python/pygobject:2[$(python_gen_usedep 'python2*')] )
+ qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] )
+ qt5? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
+ pyside? ( dev-python/pyside[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/docutils[${PYTHON_USEDEP}]
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
+ )"
+
+DOCS=( CHANGES.rst README.rst )
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.19.0-skip-non-deterministic-test.patch"
+)
+
+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
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ py.test -v || die "Tests fail with ${EPYTHON}"
+}