Date: Saturday, April 8, 2023 @ 03:49:42
Author: felixonmars
Revision: 1441680
archrelease: copy trunk to community-staging-x86_64
Added:
python-shapely/repos/community-staging-x86_64/
python-shapely/repos/community-staging-x86_64/PKGBUILD
(from rev 1441676, python-shapely/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-shapely/repos/community-staging-x86_64/PKGBUILD (from rev
1441676, python-shapely/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-08 03:49:42 UTC (rev 1441680)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Bruno Pagani <[email protected]>
+# Contributor: David Verelst <david dot verelst at gmail com>
+# Contributor: richli
+
+pkgname=python-shapely
+pkgver=1.8.5.post1
+pkgrel=2
+pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
+arch=(x86_64)
+url="https://pypi.python.org/pypi/Shapely"
+license=(BSD)
+depends=(geos python)
+optdepends=('python-numpy: for shapely.vectorized submodule')
+makedepends=(python-setuptools python-packaging python-numpy cython)
+checkdepends=(python-pytest)
+source=("https://pypi.io/packages/source/S/Shapely/Shapely-${pkgver}.tar.gz")
+sha512sums=('ce629e15a229b3a892442ca419ce9616d5a132c2af4f33450df0c932344ae255b19251c7f722a7465c6e16eab137b01f9ffbecd40d6a22a487d41b9d6db8d417')
+
+prepare() {
+ cd Shapely-$pkgver
+ rm -r _vendor
+ sed -i 's/from _vendor.packaging./from packaging./' setup.py
+}
+
+build() {
+ cd Shapely-$pkgver
+ python setup.py build
+}
+
+check() {
+ # TODO: make the hack less dirty...
+
+ cd Shapely-$pkgver
+ mv shapely shapely.bak
+ local python_version=$(python -c 'import sys; print(".".join(map(str,
sys.version_info[:2])))')
+ PYTHONPATH="${PWD}"/build/lib.linux-$CARCH-cpython-${python_version/./}
pytest -vv --color=yes
+ mv shapely.bak shapely
+}
+
+package() {
+ cd Shapely-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+}