From e981a6af2f0ca0763754b4f518dea66f95994f07 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 12 Nov 2021 19:47:02 -0800 Subject: dev-python/cchardet: Initial import Bug: https://bugs.gentoo.org/823443 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Zac Medico --- dev-python/cchardet/Manifest | 1 + dev-python/cchardet/cchardet-2.1.7.ebuild | 28 ++++++++++++++++++++++++++++ dev-python/cchardet/metadata.xml | 11 +++++++++++ 3 files changed, 40 insertions(+) create mode 100644 dev-python/cchardet/Manifest create mode 100644 dev-python/cchardet/cchardet-2.1.7.ebuild create mode 100644 dev-python/cchardet/metadata.xml (limited to 'dev-python/cchardet') diff --git a/dev-python/cchardet/Manifest b/dev-python/cchardet/Manifest new file mode 100644 index 000000000000..0bcc88256498 --- /dev/null +++ b/dev-python/cchardet/Manifest @@ -0,0 +1 @@ +DIST cchardet-2.1.7.tar.gz 653617 BLAKE2B 0ca9becac01c67da191290c7de0dc52d5c8e6c2715f660811c8e67d9a06e74ac155a081de81af96ade74ccc4065093fc226f232a26f66236fafe9fc1b48a9c9e SHA512 43e663e30ec079b2a954862de5e8136a2e40f69e300d65eb4ce9d7ffa5d8c496dc7c0937b3306b4096cfad12a1d0617628f8f0115534ab6faf9eb39d2b3935a2 diff --git a/dev-python/cchardet/cchardet-2.1.7.ebuild b/dev-python/cchardet/cchardet-2.1.7.ebuild new file mode 100644 index 000000000000..76ade5a80603 --- /dev/null +++ b/dev-python/cchardet/cchardet-2.1.7.ebuild @@ -0,0 +1,28 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="High speed universal character encoding detector" +HOMEPAGE="https://github.com/PyYoshi/cChardet https://pypi.org/project/cchardet/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + ) +" + +python_test() { + "${PYTHON}" setup.py nosetests || die "tests failed with ${EPYTHON}" +} diff --git a/dev-python/cchardet/metadata.xml b/dev-python/cchardet/metadata.xml new file mode 100644 index 000000000000..04994b4fd816 --- /dev/null +++ b/dev-python/cchardet/metadata.xml @@ -0,0 +1,11 @@ + + + + + zmedico@gentoo.org + + + cchardet + PyYoshi/cChardet + + -- cgit v1.2.3-65-gdbad