summaryrefslogtreecommitdiff
path: root/dev-python/libtmux
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-23 11:29:49 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-23 11:29:49 +0100
commit55a7866dd6169a108d3a9e8d6696a970dea8a0b6 (patch)
tree4a43df088b5fd8cfde3ca236a3b1566f0f1b45af /dev-python/libtmux
parent7f740fcb9a0165d81bfecf7fb5da647763d76a1b (diff)
gentoo auto-resync : 23:09:2022 - 11:29:49
Diffstat (limited to 'dev-python/libtmux')
-rw-r--r--dev-python/libtmux/Manifest3
-rw-r--r--dev-python/libtmux/files/libtmux-0.15.4-no-doctest.patch13
-rw-r--r--dev-python/libtmux/libtmux-0.15.4.ebuild52
3 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/libtmux/Manifest b/dev-python/libtmux/Manifest
index ae2d11afeee5..67fa929b2497 100644
--- a/dev-python/libtmux/Manifest
+++ b/dev-python/libtmux/Manifest
@@ -1,3 +1,6 @@
+AUX libtmux-0.15.4-no-doctest.patch 476 BLAKE2B 66dc3c6e28be115f64bca53012ae11307ad7b75ed2c01595c42503ddf5898ee2b8f3f643767a26f06e97a05a5c3898d7de8fd57331b5f1cf8b676877bbdaf1b9 SHA512 33b3e7d470780cce59bf3b4c00baed75d640c99aa709f83bf5f17e7a1e7f2873aed7621a3718d873934911de7d9d16923e26f454192f9a0135fe5ff24010139b
DIST libtmux-0.14.2.gh.tar.gz 234682 BLAKE2B e93b0a280c3cfdfab4c9a313d251d15665c530813f00aa78151efe62a6a566f2d8986afed015de4a8be80b48f31ac197e98d3efa592eb8895e8d9626ff34ef72 SHA512 1565529ecf555dac8f896146e2d802c0e5460458ea1da6ba5496d5d2c394f56cc8c5f7650c5d4aebd1750659bbdc529e439e60dff6a0ccef8806bb65305d2421
+DIST libtmux-0.15.4.gh.tar.gz 237928 BLAKE2B b12643336717fbba079df884aa7b8a3029c393afd0dbcfe7be07d7c08f15a8252ec73479f5423fbe86efe63fb990529f68ed5690b40e2c7938df7edd2c6e51e5 SHA512 41adc83fde64a00385bb6885243b50c73e4cedd4d0860b1eb5c9a533b73d2f7fedef1e23f1b994c809abb834b666931c3fbdccd417969865172777e34a1cc5fe
EBUILD libtmux-0.14.2.ebuild 1045 BLAKE2B 15271b0d210c5a18446c2db48a545c5011681b45f428860d4ce0f203164f48808a31de53574924dab1488119714124d12e8cc0a6272418cf960ec4c44180ce65 SHA512 b613a238fa185740af567aac8ad73753d82cd27c962d76bc3d7a5991b123dcdd42c9f64e6fcdc35a36f0e762066c839eb4e18dfb19ac5d9aa289c5eab06690d2
+EBUILD libtmux-0.15.4.ebuild 1105 BLAKE2B a246a6c5f674b6ce925f464defc95d227b13d0df27da418cd7a17264d9514f46311e152f186f7c22e03bee1c561d8b5a68624cc5b1d9f980d62769ab1a1d7b27 SHA512 39b9d27fafa9ef35f1efdd8f8f98136a9bb5eb233df86a8ed418117e7280e2bfd7df15c0a5c47a33ca19b1a9238433f76b3cd5a209da8201d239c835316e1cf5
MISC metadata.xml 403 BLAKE2B 68af7251349c8999bbdbfb7b55ca4632f8752468d7e478fd985097af86d00afe93b231667a25e3c997a3bc86b708d4e6d6ef5c35a783871cdc83519fc1db1ab1 SHA512 2a88df695e94f1da966bb72f7e90d00f2e343e40fe1924837f8c087dfc9a9a84fe0b2909a98f2f41ba72f6ba01796888a80cbac3f1bf9f05984a06385037d977
diff --git a/dev-python/libtmux/files/libtmux-0.15.4-no-doctest.patch b/dev-python/libtmux/files/libtmux-0.15.4-no-doctest.patch
new file mode 100644
index 000000000000..ecfebaa450ca
--- /dev/null
+++ b/dev-python/libtmux/files/libtmux-0.15.4-no-doctest.patch
@@ -0,0 +1,13 @@
+diff --git a/setup.cfg b/setup.cfg
+index 2547e73..3659616 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -19,7 +19,7 @@ line_length = 88
+ [tool:pytest]
+ filterwarnings =
+ ignore:.* Use packaging.version.*:DeprecationWarning::
+-addopts = --tb=short --no-header --showlocals --doctest-docutils-modules --reruns 2 -p no:doctest
++addopts = --tb=short --no-header --showlocals --reruns 2 -p no:doctest
+ doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE
+ testpaths =
+ src/libtmux
diff --git a/dev-python/libtmux/libtmux-0.15.4.ebuild b/dev-python/libtmux/libtmux-0.15.4.ebuild
new file mode 100644
index 000000000000..c26d228b0f9e
--- /dev/null
+++ b/dev-python/libtmux/libtmux-0.15.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="python api for tmux"
+HOMEPAGE="https://libtmux.git-pull.com/"
+SRC_URI="
+ https://github.com/tmux-python/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
+
+RDEPEND="
+ >=app-misc/tmux-3.0a
+"
+BDEPEND="
+ test? (
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ dev-python/twine[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/libtmux-0.15.4-no-doctest.patch"
+)
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ libtmux/pane.py::libtmux.pane.Pane.send_keys
+)
+
+python_prepare_all() {
+ local issues="https://github.com/tmux-python/libtmux/issues/"
+ sed -r -i "s|:issue:\`([[:digit:]]+)\`|\`issue \1 ${issues}\1\`|" CHANGES || die
+ rm requirements/doc.txt || die
+
+ # increase timeouts for tests
+ sed -e 's/0.01/0.1/' -i tests/test_test.py || die
+
+ distutils-r1_python_prepare_all
+}