commit: 88d6b280cded88e23d0fa062f1d3618f54f41f43 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> AuthorDate: Wed Jul 20 08:22:13 2022 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Wed Jul 20 08:23:33 2022 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=88d6b280
dev-python/python-igraph: add 0.9.11 Closes: https://github.com/gentoo/sci/pull/1155 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> Co-authored-by: Anton Molyboha <anton.stay.connected <AT> gmail.com> .../python-igraph/python-igraph-0.9.11.ebuild | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/dev-python/python-igraph/python-igraph-0.9.11.ebuild b/dev-python/python-igraph/python-igraph-0.9.11.ebuild new file mode 100644 index 000000000..4d2a6ee5f --- /dev/null +++ b/dev-python/python-igraph/python-igraph-0.9.11.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +MY_PN="${PN#python-}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Python interface for igraph" +HOMEPAGE="https://igraph.org" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-libs/igraph-0.9.0 + >=dev-python/texttable-1.6.2[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + dev-python/cairocffi[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/networkx[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/plotly[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # fix the igraph include path + cd src || die + find -type f -name "*.h" -exec sed -i -e 's@#include <igraph@#include <igraph/igraph@g' {} + || die + find -type f -name "*.c" -exec sed -i -e 's@#include <igraph@#include <igraph/igraph@g' {} + || die + cd .. || die + + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile --use-pkg-config +}
