sci-libs/pyshp: add 3.0.2_p1, drop 3.0.2

* Drop ill advised sed (leading to bug #966136 in revdeps)
* Bump python3.14.
* Drop unnecessary dependencies that wouldve belonged in BDEPEND
  eitherway.
* Use pypi tarball as it has tests.
* Use modern distutils-r1 methods for tests.

Closes: https://bugs.gentoo.org/966136
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44647
Closes: https://github.com/gentoo/gentoo/pull/44647
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
Alfred Wingate 2025-11-17 06:09:32 +02:00 committed by Thomas Beierlein
parent f3359c52a9
commit 13376c75cd
No known key found for this signature in database
GPG Key ID: AF4C8CF6B6C40570
3 changed files with 24 additions and 37 deletions

View File

@ -1,2 +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
DIST pyshp-3.0.2.post1.tar.gz 2192180 BLAKE2B 41b24de6150b0c4905e0bf5d057a2e171dceea1f6722e589ce2aad29d8c524ba83827a428a42812f36e94cfccf95f5182f9b075f1c64a5e2673623fc39f57576 SHA512 db176cb0092d7d289633eabb6ac8244a8bdda0000ebd9c88ca2db4d3263541124e9f82be47c3b0fc0bb76aa12566ddea16071e5d866228383c78e139c6f431e1

View File

@ -1,36 +0,0 @@
# 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
}

View File

@ -0,0 +1,23 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1 pypi
DESCRIPTION="Pure Python read/write support for ESRI Shapefile format"
HOMEPAGE="https://pypi.org/project/pyshp/"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
python_test() {
epytest test_shapefile.py -m "not network"
}