diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-01-20 23:47:51 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-01-21 00:25:46 +0100 |
commit | 27b1e129ae1edde5756a1a2b4a189591c1f16902 (patch) | |
tree | cbacd14ac93bcdf054d989e2ab5145f1c8b6de76 /dev-python/pygraphviz | |
parent | app-admin/awscli: Bump to 1.22.40 (diff) | |
download | gentoo-27b1e129ae1edde5756a1a2b4a189591c1f16902.tar.gz gentoo-27b1e129ae1edde5756a1a2b4a189591c1f16902.tar.bz2 gentoo-27b1e129ae1edde5756a1a2b4a189591c1f16902.zip |
dev-python/pygraphviz: Bump to 1.8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pygraphviz')
-rw-r--r-- | dev-python/pygraphviz/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pygraphviz/pygraphviz-1.8.ebuild | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/pygraphviz/Manifest b/dev-python/pygraphviz/Manifest index 63c57d24a880..868e2686912e 100644 --- a/dev-python/pygraphviz/Manifest +++ b/dev-python/pygraphviz/Manifest @@ -1 +1,2 @@ DIST pygraphviz-1.7.zip 118754 BLAKE2B 36507fc862bec45a33bee3f89e7593a15639e7d98067e1c4ddf917558b7bc037b9d7607f7f017ad5980ba0e6805e63f05464efe8fd416ef70cb95709151714e3 SHA512 09438931d1930a70f7da94b0a12b449c0836ad707c6c8abed49bae0db162c136002d170398ed02dc56a5029269490ce3156d2d4b0f30602a11165bc0038998ea +DIST pygraphviz-1.8.zip 119640 BLAKE2B a5c035085c503a06b0496a7ea4db0861e703d2811ab415f2d528dbc6c342d0fab1e9294f818cc4e49bdebba1b98456d6f34eea5628735193a6dde2c37035afce SHA512 f59d9452867167ba406d0e352700ec6bc80364318413a982eadb324c7817f92b9d09922b5fd90b603e2cf6f408390f862e003ef3f1fd3230390944f7d6ee7228 diff --git a/dev-python/pygraphviz/pygraphviz-1.8.ebuild b/dev-python/pygraphviz/pygraphviz-1.8.ebuild new file mode 100644 index 000000000000..cc40c444bcd8 --- /dev/null +++ b/dev-python/pygraphviz/pygraphviz-1.8.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="Python wrapper for the Graphviz Agraph data structure" +HOMEPAGE="https://pygraphviz.github.io/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x86-linux ~ppc-macos ~x64-macos" + +# Note: only C API of graphviz is used, PYTHON_USEDEP unnecessary. +RDEPEND="media-gfx/graphviz" +DEPEND="${RDEPEND}" +BDEPEND=" + app-arch/unzip + dev-lang/swig:0 + test? ( dev-python/doctest-ignore-unicode[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +src_configure() { + swig -python pygraphviz/graphviz.i || die +} + +python_test() { + cd "${BUILD_DIR}"/install || die + epytest +} + +python_install_all() { + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + + distutils-r1_python_install_all +} |