dev-python/pyzbar: Introducing support for Python3.7
authorOleksandr Trotsenko <oleksandr.trotsenko@gmail.com>
Thu, 30 Aug 2018 04:44:43 +0000 (23:44 -0500)
committerCraig Andrews <candrews@gentoo.org>
Fri, 31 Aug 2018 18:20:23 +0000 (14:20 -0400)
Introducing support for Python 3.7. Dropping Python 3.4 because repoman was
complaining about unmet dependencies.
Bumping to latest upstream version.

Closes: https://bugs.gentoo.org/663158
Package-Manager: Portage-2.3.48, Repoman-2.3.10

dev-python/pyzbar/Manifest
dev-python/pyzbar/pyzbar-0.1.5.ebuild
dev-python/pyzbar/pyzbar-0.1.7.ebuild [new file with mode: 0644]

index 17148c74c090579c3a72f58127730968e4db1b0b..c9e8cffa681dcbe8422c7ea9fd4dbb062f3715e8 100644 (file)
@@ -1 +1,2 @@
 DIST pyzbar-0.1.5.tar.gz 29654 BLAKE2B 2909ccae347139472398ccbf24ab304084946f649694e820bb62f8298076007ac7cb02acf02087e3ed5d59fb8a32f1f6b61b0af50a85753b0dd182029e98bc5c SHA512 785c3e4cc5b44a1035004e4b4dd2ee538613aa021300b84c6183cc457c751fe4b4a419241608ef0e5e548d312596a0d5f4857a7b1388c6cef77fd021a0e0034a
+DIST pyzbar-0.1.7.tar.gz 41551 BLAKE2B 497e920935ec6a50557123e2d78709c935284bfcff32705f8aebad3e13ead4ced7d6822adc8f377a94eb21603f81ddc4f563df9bc92b399e6244a9dee12f2163 SHA512 74b56658db7a8dc2d7a716992c001ec52a2befc9e31c41ecf7e5e1f277d4188963ef79a2433fc4befdd15d2f6e3f47c4f064582b530eef028c55e07e2c88dbbe
index 402f0bd97dacf4b69adc269bcceedb19962ad41e..eb56c26484368d7a511b5fd5b43737473f02d2da 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
 inherit distutils-r1
 
 DESCRIPTION="Read one-dimensional barcodes and QR codes from Python"
diff --git a/dev-python/pyzbar/pyzbar-0.1.7.ebuild b/dev-python/pyzbar/pyzbar-0.1.7.ebuild
new file mode 100644 (file)
index 0000000..eb56c26
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
+inherit distutils-r1
+
+DESCRIPTION="Read one-dimensional barcodes and QR codes from Python"
+HOMEPAGE="https://github.com/NaturalHistoryMuseum/pyzbar/"
+SRC_URI="https://github.com/NaturalHistoryMuseum/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+       dev-python/pillow[${PYTHON_USEDEP}]
+       media-gfx/zbar
+       virtual/python-enum34[${PYTHON_USEDEP}]
+       virtual/python-pathlib[${PYTHON_USEDEP}]
+"
+
+DEPEND="
+       ${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? (
+               virtual/python-unittest-mock[${PYTHON_USEDEP}]
+               dev-python/numpy[${PYTHON_USEDEP}]
+       )
+"
+
+python_test() {
+       "${EPYTHON}" -m unittest discover -v || die "Testing failed with ${EPYTHON}"
+}