diff options
author | Oleksandr Trotsenko <oleksandr.trotsenko@gmail.com> | 2018-05-06 09:35:03 -0500 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-05-18 16:55:29 +0200 |
commit | 8823d61fc48f240ae0d475ed85bdf630cd23b8f0 (patch) | |
tree | 5f792444481a702063c0ab210130a9198f7afc33 /dev-python/pyzbar | |
parent | app-backup/burp: amd64 stable wrt bug #655950 (diff) | |
download | gentoo-8823d61fc48f240ae0d475ed85bdf630cd23b8f0.tar.gz gentoo-8823d61fc48f240ae0d475ed85bdf630cd23b8f0.tar.bz2 gentoo-8823d61fc48f240ae0d475ed85bdf630cd23b8f0.zip |
dev-python/pyzbar: Introducing package
Closes: https://bugs.gentoo.org/655078
Closes: https://github.com/gentoo/gentoo/pull/8281
Package-Manager: Portage-2.3.33, Repoman-2.3.9
Diffstat (limited to 'dev-python/pyzbar')
-rw-r--r-- | dev-python/pyzbar/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pyzbar/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pyzbar/pyzbar-0.1.5.ebuild | 36 |
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/pyzbar/Manifest b/dev-python/pyzbar/Manifest new file mode 100644 index 000000000000..17148c74c090 --- /dev/null +++ b/dev-python/pyzbar/Manifest @@ -0,0 +1 @@ +DIST pyzbar-0.1.5.tar.gz 29654 BLAKE2B 2909ccae347139472398ccbf24ab304084946f649694e820bb62f8298076007ac7cb02acf02087e3ed5d59fb8a32f1f6b61b0af50a85753b0dd182029e98bc5c SHA512 785c3e4cc5b44a1035004e4b4dd2ee538613aa021300b84c6183cc457c751fe4b4a419241608ef0e5e548d312596a0d5f4857a7b1388c6cef77fd021a0e0034a diff --git a/dev-python/pyzbar/metadata.xml b/dev-python/pyzbar/metadata.xml new file mode 100644 index 000000000000..e7214b7e32c5 --- /dev/null +++ b/dev-python/pyzbar/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>oleksandr.trotsenko@gmail.com</email> + <name>Oleksandr Trotsenko</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +</pkgmetadata> diff --git a/dev-python/pyzbar/pyzbar-0.1.5.ebuild b/dev-python/pyzbar/pyzbar-0.1.5.ebuild new file mode 100644 index 000000000000..402f0bd97dac --- /dev/null +++ b/dev-python/pyzbar/pyzbar-0.1.5.ebuild @@ -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_{4,5,6} ) +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}" +} |