commit: e4f56d7ae3e3f16abdb42a50d288386bc5f4101c
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed May 25 17:57:47 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed May 25 18:01:48 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4f56d7a
dev-python/cwcwidth: Use PEP517 build
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-python/cwcwidth/cwcwidth-0.1.6-r1.ebuild | 29 ++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/dev-python/cwcwidth/cwcwidth-0.1.6-r1.ebuild
b/dev-python/cwcwidth/cwcwidth-0.1.6-r1.ebuild
new file mode 100644
index 000000000000..4cb7b7736243
--- /dev/null
+++ b/dev-python/cwcwidth/cwcwidth-0.1.6-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for wc(s)width"
+HOMEPAGE="
+ https://github.com/sebastinas/cwcwidth/
+ https://pypi.org/project/cwcwidth/"
+SRC_URI="
+ https://github.com/sebastinas/cwcwidth/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+
+BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
+
+distutils_enable_tests unittest
+
+src_test() {
+ cd tests || die
+ distutils-r1_src_test
+}