summaryrefslogtreecommitdiff
path: root/dev-python/cmd2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-08 03:03:28 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-08 03:03:28 +0000
commit2cd9ff612e84f0c1ef63c9e9e13be53fe576cc2b (patch)
tree6e975e18646dac9f4b55fab980271a027428cc4d /dev-python/cmd2
parentabe17cf152eeb7571da8db4b25a30465644a41ba (diff)
gentoo auto-resync : 08:11:2024 - 03:03:27
Diffstat (limited to 'dev-python/cmd2')
-rw-r--r--dev-python/cmd2/Manifest2
-rw-r--r--dev-python/cmd2/cmd2-2.5.4.ebuild53
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/cmd2/Manifest b/dev-python/cmd2/Manifest
index e7d517c70028..bad6b18c7fb1 100644
--- a/dev-python/cmd2/Manifest
+++ b/dev-python/cmd2/Manifest
@@ -1,7 +1,9 @@
DIST cmd2-2.4.3.tar.gz 678661 BLAKE2B 806fbd6abc26737032dd6330ebabc1e5308e9082f9c98002845a54f1458d314feb476e4d491892e74cde16f5043c57495426ad50aaf3e7e8d0d938f0388db6e2 SHA512 1d440752262f38a742069e636373884edcc49c17ba17b21b24015cfe559b4df36b45ac9489f2f643897fbd38f54b8e6120daf07ef25d2f209af8a4ac8e4c0085
DIST cmd2-2.5.2.tar.gz 984695 BLAKE2B b85b1f0732897491c9f391a56018c5258a8916299003c565e4f2f42866ce1ff48d86e03b54aa0bf7a582e8e51cf41b079d0fabe418b4e9a855a8e850e7bc02cb SHA512 565c64030f4ea15e29a8350ed625b56a3e18c442930a8c4216c334431ab220895e0dd21ff079c5a888c693f43fec4b69da4dcf14c84ec3a089cfc27ff4c298f8
DIST cmd2-2.5.3.tar.gz 689714 BLAKE2B 20dd6aff4b2c520d5f82e6273a853571d03d8c5b1d464c0225270757e6e8f4a36ced09c2311bbdc132603d92ff80bb7047502aef445974fb9908b7088f92a8b4 SHA512 eb5da50a543f485a15a768cca72cfaa32608e20d8afc07712baa7c2105eefd8496a9ad2a123097dd7dac236de6e2cf725539a36dd7902bd909668e41f304b646
+DIST cmd2-2.5.4.tar.gz 690076 BLAKE2B 4148b8a6a8df56e75f4c8c204c7524a9eb47f91950b72fae25f751bde6f6575e3a4d6d389897b9b1eb7186bd3e42de6636b50babb5ae77ee038e950c1d9568e2 SHA512 c63530ac39655b0ecfe3b690115bdde75b661650a2ef6d8766f5dbee653565d02aab64d620b46109400bf8bf0df29a91c36ac7f4a7df7ab2d84ee688b00054fd
EBUILD cmd2-2.4.3.ebuild 1449 BLAKE2B 048c82f691185fc1ec554da222c550b26e721a394a1d6ed415c7bc50d9d15d89af538efddb6a06436107ada2507c5837dfc57657947a4a730d77f910a0963341 SHA512 00381938df082bfa0aa824ac2eec95bebc45856d9419b0893292ef3cdb06ba1e22404aa4ca1fd6245bf995a2c2c4b56e7f248d9faa6daee3639bf4d606e9345e
EBUILD cmd2-2.5.2.ebuild 1332 BLAKE2B b0d912a7d7d35e4148d4932635c8348fcd9b10ccb46a9758754c68d764aacf17789bf34ebfb3e30416cbdf870d512e64a0cb2a519188dca5c366b92611bf0fd3 SHA512 1a3c84a81e73d8bee162bb5f88b03034d9c3be4d1bf767bcada796dee1a94c501cd2ac189ee4dfc8f516eb35ae85fce4f7a32737184d87996690f28f5ea9850b
EBUILD cmd2-2.5.3.ebuild 1332 BLAKE2B b0d912a7d7d35e4148d4932635c8348fcd9b10ccb46a9758754c68d764aacf17789bf34ebfb3e30416cbdf870d512e64a0cb2a519188dca5c366b92611bf0fd3 SHA512 1a3c84a81e73d8bee162bb5f88b03034d9c3be4d1bf767bcada796dee1a94c501cd2ac189ee4dfc8f516eb35ae85fce4f7a32737184d87996690f28f5ea9850b
+EBUILD cmd2-2.5.4.ebuild 1332 BLAKE2B b0d912a7d7d35e4148d4932635c8348fcd9b10ccb46a9758754c68d764aacf17789bf34ebfb3e30416cbdf870d512e64a0cb2a519188dca5c366b92611bf0fd3 SHA512 1a3c84a81e73d8bee162bb5f88b03034d9c3be4d1bf767bcada796dee1a94c501cd2ac189ee4dfc8f516eb35ae85fce4f7a32737184d87996690f28f5ea9850b
MISC metadata.xml 522 BLAKE2B 39d319b6a64a7b54568a3fbd3d7db9adf7719b690a8f086018ce41f0595db157b1f7825ce28afb4fb0d748ca0d6dc21d79e480361b69b4bf29c0efc2d2540bba SHA512 57315c23dd64534085502e59f0b8ca01ef8088d5a2b16ed807631a1f36a523768960754b00619e802333552c405e2984e314d91003f7a624da6f1eb8e8e4b98a
diff --git a/dev-python/cmd2/cmd2-2.5.4.ebuild b/dev-python/cmd2/cmd2-2.5.4.ebuild
new file mode 100644
index 000000000000..820c48bb0ffa
--- /dev/null
+++ b/dev-python/cmd2/cmd2-2.5.4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 virtualx pypi
+
+DESCRIPTION="Extra features for standard library's cmd module"
+HOMEPAGE="
+ https://github.com/python-cmd2/cmd2/
+ https://pypi.org/project/cmd2/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ dev-python/pyperclip[${PYTHON_USEDEP}]
+ dev-python/wcwidth[${PYTHON_USEDEP}]
+"
+# pyperclip uses clipboard backends in the following preference order:
+# pygtk, xclip, xsel, klipper, qtpy, pyqt5, pyqt4.
+# klipper is known to be broken in Xvfb, and therefore causes test
+# failures. to avoid them, we must ensure that one of the backends
+# preferred to it is available (i.e. xclip or xsel).
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ || (
+ x11-misc/xclip
+ x11-misc/xsel
+ )
+ )
+"
+
+distutils_enable_tests pytest
+
+src_test() {
+ # tests rely on very specific text wrapping...
+ local -x COLUMNS=80
+ virtx distutils-r1_src_test
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ # TODO: tests_isolated?
+ epytest -o addopts= -p pytest_mock tests || die
+}