summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-17 09:30:57 +0200
committerMichał Górny <mgorny@gentoo.org>2022-04-17 10:38:52 +0200
commitf221dae4a694895b355601353c09eecbaff8beed (patch)
treebd2684797a901588cc0a25dd17868e830fbefb99 /dev-python/graphviz
parentdev-python/hypothesis: Bump to 6.43.2 (diff)
downloadgentoo-f221dae4a694895b355601353c09eecbaff8beed.tar.gz
gentoo-f221dae4a694895b355601353c09eecbaff8beed.tar.bz2
gentoo-f221dae4a694895b355601353c09eecbaff8beed.zip
dev-python/graphviz: Bump to 0.20
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/graphviz')
-rw-r--r--dev-python/graphviz/Manifest1
-rw-r--r--dev-python/graphviz/graphviz-0.20.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/graphviz/Manifest b/dev-python/graphviz/Manifest
index d3ca355b52cf..24f2c1e30ca1 100644
--- a/dev-python/graphviz/Manifest
+++ b/dev-python/graphviz/Manifest
@@ -1,2 +1,3 @@
DIST graphviz-0.19.1.zip 247779 BLAKE2B c0b226c2ae66f8b583a30cf2842b8cfdecd926f0e7f32fbbfb4dae17ce14792d0af8d8cf6de53cc9a7facdeb8b0a4a078b962eabf64460e1fd42dd995e069428 SHA512 3aa078887458d7bcd173c46ee6e4d8dbdae0c9103755e61e5a027c18e5d8913990aa16a595e80228607c17db1aa9dffdb93e264cafafc8b6318bc3a87547bc5d
DIST graphviz-0.19.2.zip 248057 BLAKE2B 40fbbeea1f347f3843898c088f3c1ee81eee321aeaaa4bf42d97343d6527a4d43a207bd2e6a5833b04aa50c8be2e58ba77ec99147dfcf22a9eefed733afc0cc8 SHA512 a1dc396bc0b0572a952365d7b22df46fc99a5f081ec02e774d0efa9113c4aa5ca5005855221554cdc96d90997d9efff43b80e1dd858622889afd26d44fbc3671
+DIST graphviz-0.20.zip 255452 BLAKE2B 0bafa3af9d712e30bd6777d55d54c5a8055f8ad4c6e6ee8c9f936a5abf6e025d7179b2b72e9e0926378ae30e9b655d08507e815c67944123c6c222ecbcd4939d SHA512 8b30ac09913ec5860cf26cfc9e008b0feeda8d61274e346ec305087468b655ace115ff28e0ab96eb47d97127410213729d1131dd635771dcaedfae0bae0ca178
diff --git a/dev-python/graphviz/graphviz-0.20.ebuild b/dev-python/graphviz/graphviz-0.20.ebuild
new file mode 100644
index 000000000000..2b0922565359
--- /dev/null
+++ b/dev-python/graphviz/graphviz-0.20.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-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="Simple Python interface for Graphviz"
+HOMEPAGE="https://graphviz.readthedocs.io/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
+
+LICENSE="MIT"
+KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+
+RDEPEND="
+ media-gfx/graphviz
+"
+BDEPEND="
+ app-arch/unzip
+ test? (
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
+ >=dev-python/pytest-mock-1.8[${PYTHON_USEDEP}]
+ media-gfx/graphviz[gts,pdf]
+ )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ sed -e 's:--cov --cov-report=term --cov-report=html::' \
+ -i setup.cfg || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ "${EPYTHON}" run-tests.py -vv -ra -l -Wdefault -p no:xdoctest ||
+ die "Tests failed with ${EPYTHON}"
+}