summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/cchardet')
-rw-r--r--dev-python/cchardet/Manifest1
-rw-r--r--dev-python/cchardet/cchardet-2.1.7.ebuild28
-rw-r--r--dev-python/cchardet/metadata.xml11
3 files changed, 40 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">cchardet</remote-id>
+ <remote-id type="github">PyYoshi/cChardet</remote-id>
+ </upstream>
+</pkgmetadata>