commit:     ca4be3f20afd758d4428360feb799bd98b77038f
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Fri Nov 15 14:24:06 2024 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Tue Nov 19 14:05:24 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=ca4be3f2

dev-python/geopandas: add 1.0.1 with masked tests

- add version numbers to DEPENDs
- use EPYTEST_DESELECT
- add known test failiures to deselect
- improve comment
- clean out optfeatures

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Closes: https://github.com/gentoo/sci/pull/1302
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 dev-python/geopandas/geopandas-1.0.1.ebuild | 48 +++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/dev-python/geopandas/geopandas-1.0.1.ebuild 
b/dev-python/geopandas/geopandas-1.0.1.ebuild
new file mode 100644
index 000000000..9b440455f
--- /dev/null
+++ b/dev-python/geopandas/geopandas-1.0.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2024 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 optfeature
+
+DESCRIPTION="Python tools for geographic data"
+HOMEPAGE="
+       https://github.com/geopandas/geopandas
+       https://pypi.org/project/geopandas/
+"
+SRC_URI="https://github.com/geopandas/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="test" # 10 tests fail for 1.0.1
+
+# upstream order
+RDEPEND="
+       dev-python/numpy[${PYTHON_USEDEP}]
+       >=dev-python/pandas-1.4[${PYTHON_USEDEP}]
+       >=dev-python/shapely-2.0.0[${PYTHON_USEDEP}]
+       >=dev-python/pyproj-3.3.0[${PYTHON_USEDEP}]
+       dev-python/fiona[${PYTHON_USEDEP}]
+"
+
+EPYTEST_DESELECT=(
+       # violates network sandbox
+       geopandas/io/tests/test_file.py::test_read_file_url
+       # fails with RuntimeError thrown by matplotlib
+       geopandas/tests/test_plotting.py::TestGeoplotAccessor::test_pandas_kind
+
+       # rtree results are known to be unordered, see False-expected1
+       
geopandas/tests/test_sindex.py::TestShapelyInterface::test_query_bulk_sorting
+       geopandas/tests/test_sindex.py::TestShapelyInterface::test_query_sorting
+)
+distutils_enable_tests pytest
+
+pkg_postinst() {
+       optfeature "plotting" >=dev-python/matplotlib-3.5.0
+       optfeature "geocoding" sci-geosciences/geopy
+       elog "For full optional dependencies list visit"
+       elog 
"https://geopandas.org/en/stable/getting_started/install.html#dependencies";
+}

Reply via email to