commit:     233312769e425819e4b26c73cac2efe2147cba7a
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Fri Nov 15 13:22:36 2024 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Tue Nov 19 14:05:20 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=23331276

dev-python/fiona: simple version bump tp 1.9.6

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 dev-python/fiona/fiona-1.9.6.ebuild | 76 +++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)

diff --git a/dev-python/fiona/fiona-1.9.6.ebuild 
b/dev-python/fiona/fiona-1.9.6.ebuild
new file mode 100644
index 000000000..ad73fbbd0
--- /dev/null
+++ b/dev-python/fiona/fiona-1.9.6.ebuild
@@ -0,0 +1,76 @@
+# 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
+
+DESCRIPTION="API for reading/writing vector geospatial data"
+HOMEPAGE="https://github.com/Toblerity/fiona";
+SRC_URI="https://github.com/Toblerity/${PN}/archive/refs/tags/${PV}.tar.gz -> 
${P}.gh.tar.gz"
+S="${WORKDIR}/Fiona-${PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       sci-libs/gdal[geos,sqlite]
+       dev-python/attrs[${PYTHON_USEDEP}]
+       dev-python/click-plugins[${PYTHON_USEDEP}]
+       dev-python/cligj[${PYTHON_USEDEP}]
+       dev-python/munch[${PYTHON_USEDEP}]
+       dev-python/certifi[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+       dev-python/cython[${PYTHON_USEDEP}]
+       test? (
+               dev-python/boto3[${PYTHON_USEDEP}]
+               sci-libs/gdal[geos,sqlite]
+       )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+       local deselect=(
+               # disable tests due to networking blocked
+               tests/test_vfs.py::test_open_http
+               tests/test_vfs.py::test_open_zip_https
+               tests/test_collection.py::test_collection_http
+               tests/test_collection.py::test_collection_zip_http
+
+               # disable tests failing due to deprecated GDAL features
+               tests/test_data_paths.py::test_gdal_data_wheel
+               tests/test_data_paths.py::test_proj_data_wheel
+               tests/test_data_paths.py::test_env_gdal_data_wheel
+               tests/test_data_paths.py::test_env_proj_data_wheel
+               tests/test_datetime.py::test_datefield[GPSTrackMaker-datetime]
+               
tests/test_datetime.py::test_datefield_null[GPSTrackMaker-datetime]
+               
tests/test_drvsupport.py::test_write_or_driver_error[GPSTrackMaker]
+               
tests/test_drvsupport.py::test_no_append_driver_cannot_append[GPSTrackMaker]
+               
tests/test_drvsupport.py::test_no_append_driver_cannot_append[PCIDSK]
+               tests/test_drvsupport.py::test_write_or_driver_error[DGN]
+
+               # failure in flatgeobuf impl
+               
tests/test_drvsupport.py::test_no_append_driver_cannot_append[FlatGeobuf]
+
+               # geos
+               #tests/test_collection.py::test_mask_polygon_triangle
+               #tests/test_collection.py::test_mask_polygon_triangle
+               #tests/test_collection.py::test_mask_polygon_triangle
+
+               # sqlite
+               #tests/test_schema.py::test_geometry_only_schema_write[GPKG]
+               #tests/test_schema.py::test_geometry_only_schema_update[GPKG]
+               #tests/test_schema.py::test_property_only_schema_write[GPKG]
+               #tests/test_schema.py::test_property_only_schema_update[GPKG]
+       )
+
+       mv fiona{,.bak} || die # Avoid non-working local import
+       epytest ${deselect[@]/#/--deselect }
+       mv fiona{.bak,} || die
+}

Reply via email to