commit:     e100cff43929cf47b8f83185eaed78eb924df545
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  9 14:58:10 2025 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Thu Oct  9 14:59:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e100cff4

sci-libs/pyshp: add 3.0.2

Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 sci-libs/pyshp/Manifest           |  1 +
 sci-libs/pyshp/pyshp-3.0.2.ebuild | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/sci-libs/pyshp/Manifest b/sci-libs/pyshp/Manifest
index e752726fb9a5..fe58cbbd5e2a 100644
--- a/sci-libs/pyshp/Manifest
+++ b/sci-libs/pyshp/Manifest
@@ -1 +1,2 @@
 DIST pyshp-2.4.1..gh.tar.gz 2220419 BLAKE2B 
3183c41a1a0be1081a44a1d0d479ff3f98353f28a560b62ff3c5f5f14e8e38d26c3bc3135b286df4eb581c4a6f3131dde956c82f2961a614e15ace820380132e
 SHA512 
5bc58c6acb11eb170f851e4631f5befd7a14b3b55475cfb41c0984e3d71386932fe93b6fb982f04d7c5766f7a05cd1aec9329b71c9515cf045b37efb9af3ccc3
+DIST pyshp-3.0.2.gh.tar.gz 2229746 BLAKE2B 
7697c202e88cdc745144f2ce3ddf1ba4544d5225ceab28f14cbf09dcc19007a4ac75f8c983ce258acac2873ed009fbb1877eb3cd7b434cae2ab3308fa42cb811
 SHA512 
138dcf93fcdb604845f58ad52f88e869e6d88a50b77ccb3ece8e80369720951bef7a876900350dc4dba5e8ae36507184408d6644b6d3594e9e1e0f422d9c9f40

diff --git a/sci-libs/pyshp/pyshp-3.0.2.ebuild 
b/sci-libs/pyshp/pyshp-3.0.2.ebuild
new file mode 100644
index 000000000000..360dc12407dc
--- /dev/null
+++ b/sci-libs/pyshp/pyshp-3.0.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+PYTHON_COMPAT=( python3_{9..13} )
+
+DISTUTILS_USE_PEP517=hatchling
+inherit distutils-r1
+
+DESCRIPTION="Pure Python read/write support for ESRI Shapefile format"
+HOMEPAGE="https://pypi.org/project/pyshp/";
+# pypi tarballs are missing test data
+#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="https://github.com/GeospatialPython/${PN}/archive/${PV}.tar.gz -> 
${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       dev-python/hatchling[${PYTHON_USEDEP}]
+       test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+src_prepare() {
+       eapply_user
+       sed -i -e "s/\"src\" = \"\"/\"src\" = \"shapefile\"/g" pyproject.toml 
|| die
+       default_src_prepare
+}
+
+python_test() {
+       epytest test_shapefile.py -m "not network" || die
+}

Reply via email to