diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
commit | b24bd25253fe093f722ab576d29fdc41d04cb1ee (patch) | |
tree | 0fcf2afd9f852c4d4c291cf8afaa2c244d598105 /dev-python/qrcode/qrcode-6.1.ebuild | |
parent | 121ed4eec41fbf03e1998d09eede1bf449da63b9 (diff) |
gentoo resync : 02.08.2019
Diffstat (limited to 'dev-python/qrcode/qrcode-6.1.ebuild')
-rw-r--r-- | dev-python/qrcode/qrcode-6.1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/qrcode/qrcode-6.1.ebuild b/dev-python/qrcode/qrcode-6.1.ebuild new file mode 100644 index 000000000000..b59ee7e4b562 --- /dev/null +++ b/dev-python/qrcode/qrcode-6.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit distutils-r1 + +DESCRIPTION="QR Code generator on top of PIL" +HOMEPAGE="https://pypi.org/project/qrcode/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +# optional deps: +# - pillow and lxml for svg backend, set as hard deps +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( ${RDEPEND} + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) )" + +python_test() { + "${EPYTHON}" -m unittest discover -v || die "Testing failed with ${EPYTHON}" +} + +src_install() { + distutils-r1_src_install + doman doc/qr.1 +} |