summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-07-08 07:58:14 +0200
committerMichał Górny <mgorny@gentoo.org>2023-07-08 08:05:35 +0200
commit9ed82c58be0ca27cf06dd247534737b788433b3e (patch)
tree07a1373ad5be1fed9a0a897f4f759d54e8c58941 /dev-python/charset-normalizer
parentdev-python/charset_normalizer: Prepare for a rename (diff)
downloadgentoo-9ed82c58be0ca27cf06dd247534737b788433b3e.tar.gz
gentoo-9ed82c58be0ca27cf06dd247534737b788433b3e.tar.bz2
gentoo-9ed82c58be0ca27cf06dd247534737b788433b3e.zip
Rename dev-python/{charset_normalizer → charset-normalizer}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/charset-normalizer')
-rw-r--r--dev-python/charset-normalizer/Manifest1
-rw-r--r--dev-python/charset-normalizer/charset-normalizer-3.1.0.ebuild33
-rw-r--r--dev-python/charset-normalizer/metadata.xml12
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/charset-normalizer/Manifest b/dev-python/charset-normalizer/Manifest
new file mode 100644
index 000000000000..9c084a8a27a0
--- /dev/null
+++ b/dev-python/charset-normalizer/Manifest
@@ -0,0 +1 @@
+DIST charset_normalizer-3.1.0.gh.tar.gz 90246 BLAKE2B 2e96f7c9910091e81d05a6632f14b6ec9481f1f927551ac8d70c1b320c21b7b4be196118391ec4db3291f74819e9488c71d90dc9a489e51849d251fb97ec8f9d SHA512 77657990605ef342934c140b7a9b38cf843d9739725deb3d755a00000dd1e3a9b25d73986cf26cdb291ea0f32aee0c3f5dfb771cb22b8b19246eb909b78240ce
diff --git a/dev-python/charset-normalizer/charset-normalizer-3.1.0.ebuild b/dev-python/charset-normalizer/charset-normalizer-3.1.0.ebuild
new file mode 100644
index 000000000000..f69a0c6e7f47
--- /dev/null
+++ b/dev-python/charset-normalizer/charset-normalizer-3.1.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
+EAPI=7
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+inherit distutils-r1
+
+MY_P=charset_normalizer-${PV}
+DESCRIPTION="The Real First Universal Charset Detector"
+HOMEPAGE="
+ https://pypi.org/project/charset-normalizer/
+ https://github.com/Ousret/charset_normalizer/
+"
+SRC_URI="
+ https://github.com/Ousret/charset_normalizer/archive/${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest -o addopts=
+}
diff --git a/dev-python/charset-normalizer/metadata.xml b/dev-python/charset-normalizer/metadata.xml
new file mode 100644
index 000000000000..a2eef9f00815
--- /dev/null
+++ b/dev-python/charset-normalizer/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="github">Ousret/charset_normalizer</remote-id>
+ <remote-id type="pypi">charset-normalizer</remote-id>
+ </upstream>
+</pkgmetadata>