diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-11-10 14:06:32 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-11-10 14:20:00 +0100 |
commit | 3fd43664e9920c61f901470328c45d27fd2482bb (patch) | |
tree | 92a9833053fe79fb4b2be90b1a7a6f259131f7b7 /dev-python/pydot | |
parent | dev-python/jupyter-server-proxy: enable py3.12 (diff) | |
download | gentoo-3fd43664e9920c61f901470328c45d27fd2482bb.tar.gz gentoo-3fd43664e9920c61f901470328c45d27fd2482bb.tar.bz2 gentoo-3fd43664e9920c61f901470328c45d27fd2482bb.zip |
dev-python/pydot: update EAPI 7 -> 8
Closes: https://bugs.gentoo.org/909939
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/pydot')
-rw-r--r-- | dev-python/pydot/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pydot/pydot-1.4.2-r4.ebuild | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/pydot/Manifest b/dev-python/pydot/Manifest index c1159712b377..8954a2b1f36a 100644 --- a/dev-python/pydot/Manifest +++ b/dev-python/pydot/Manifest @@ -1 +1,2 @@ +DIST pydot-1.4.2.gh.tar.gz 272678 BLAKE2B 966f2c4ef3e26a63cc50ab89b5b6b5b413aabdfeddf994f2d5ba9dedaa1ed3152dd8060186e7380c3e768b783f7bfe1971cd600c18d1b73f7ac63db08ee3ace9 SHA512 caa8051561710129b5164fd1392da941829fd977092a6ec8b00efe7a199d2d60bc7ef13cb0e51615f384550f0fb80190d0f56b83d8d80d1fe372efb5dbbd3632 DIST pydot-1.4.2.tar.gz 272678 BLAKE2B 966f2c4ef3e26a63cc50ab89b5b6b5b413aabdfeddf994f2d5ba9dedaa1ed3152dd8060186e7380c3e768b783f7bfe1971cd600c18d1b73f7ac63db08ee3ace9 SHA512 caa8051561710129b5164fd1392da941829fd977092a6ec8b00efe7a199d2d60bc7ef13cb0e51615f384550f0fb80190d0f56b83d8d80d1fe372efb5dbbd3632 diff --git a/dev-python/pydot/pydot-1.4.2-r4.ebuild b/dev-python/pydot/pydot-1.4.2-r4.ebuild new file mode 100644 index 000000000000..4a612a3dc5e4 --- /dev/null +++ b/dev-python/pydot/pydot-1.4.2-r4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="Python interface to Graphviz's Dot language" +HOMEPAGE="https://github.com/pydot/pydot https://pypi.org/project/pydot/" +# pypi releases don't include tests +SRC_URI="https://github.com/pydot/pydot/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/pyparsing[${PYTHON_USEDEP}] + media-gfx/graphviz" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/chardet[${PYTHON_USEDEP}] + )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.2-pyparsing-3.patch +) + +python_test() { + cd test || die + PYTHONPATH="${WORKDIR}"/${P}-${EPYTHON/./_}/install/usr/lib/${EPYTHON}/site-packages \ + "${PYTHON}" pydot_unittest.py || die "Test failed with ${EPYTHON}" +} |