commit: b41d93b655279eaaff6b66fb1147deabd11f41e3
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 10 13:02:00 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Feb 10 13:02:00 2023 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b41d93b6
dev-python/python-igraph: add 0.10.4
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
dev-python/python-igraph/metadata.xml | 3 ++
.../python-igraph/python-igraph-0.10.4.ebuild | 51 ++++++++++++++++++++++
2 files changed, 54 insertions(+)
diff --git a/dev-python/python-igraph/metadata.xml
b/dev-python/python-igraph/metadata.xml
index e97c4322a..4a86617fb 100644
--- a/dev-python/python-igraph/metadata.xml
+++ b/dev-python/python-igraph/metadata.xml
@@ -9,4 +9,7 @@
<email>[email protected]</email>
<name>Gentoo Science Project</name>
</maintainer>
+ <upstream>
+ <remote-id type="pypi">python-igraph</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-python/python-igraph/python-igraph-0.10.4.ebuild
b/dev-python/python-igraph/python-igraph-0.10.4.ebuild
new file mode 100644
index 000000000..f0096ae23
--- /dev/null
+++ b/dev-python/python-igraph/python-igraph-0.10.4.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1
+
+DESCRIPTION="Python interface for igraph"
+HOMEPAGE="https://igraph.org"
+SRC_URI="mirror://pypi/i/igraph/igraph-${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/igraph-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ >=dev-libs/igraph-$(ver_cut 1-2)
+ >=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
+}