From 2634bc20f52d7985422da6d48b3151c3a1f47f3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 7 Jul 2019 14:06:33 +0200 Subject: [PATCH] dev-python/colorclass: New package, test-dep of tabulate & others MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/colorclass/Manifest | 1 + dev-python/colorclass/colorclass-2.2.0.ebuild | 24 +++++++++++++++++++ dev-python/colorclass/metadata.xml | 7 ++++++ 3 files changed, 32 insertions(+) create mode 100644 dev-python/colorclass/Manifest create mode 100644 dev-python/colorclass/colorclass-2.2.0.ebuild create mode 100644 dev-python/colorclass/metadata.xml diff --git a/dev-python/colorclass/Manifest b/dev-python/colorclass/Manifest new file mode 100644 index 000000000000..eb298177c197 --- /dev/null +++ b/dev-python/colorclass/Manifest @@ -0,0 +1 @@ +DIST colorclass-2.2.0.gh.tar.gz 486151 BLAKE2B d8f4c9e826cf284df47bf2aac4da71f448818858e2383b331b5bba791d9db3c5c11d5aff74b3eb740e657914137b2b74b217854ab589806a22a0ff6697cbde1c SHA512 c627cdf6abdb5a60e9ecc1fb3b669898edc027fdc3f8cde31be2e10402ee308c2067fcd50d1228759e93fc58c521b7fc12e6b259233a17cf99f55cda26279fed diff --git a/dev-python/colorclass/colorclass-2.2.0.ebuild b/dev-python/colorclass/colorclass-2.2.0.ebuild new file mode 100644 index 000000000000..3a2e9a69f58a --- /dev/null +++ b/dev-python/colorclass/colorclass-2.2.0.ebuild @@ -0,0 +1,24 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) +inherit distutils-r1 + +DESCRIPTION="Colorful worry-free console applications for multiple platforms" +HOMEPAGE="https://pypi.org/project/colorclass/ https://github.com/Robpol86/colorclass" +SRC_URI="https://github.com/Robpol86/colorclass/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_test() { + pytest -vv || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/colorclass/metadata.xml b/dev-python/colorclass/metadata.xml new file mode 100644 index 000000000000..266e3f19ca59 --- /dev/null +++ b/dev-python/colorclass/metadata.xml @@ -0,0 +1,7 @@ + + + + + python@gentoo.org + + -- 2.26.2