[arch-commits] Commit in (4 files)
Bruno Pagani
archange at gemini.archlinux.org
Wed Jun 22 11:43:39 UTC 2022
Date: Wednesday, June 22, 2022 @ 11:43:39
Author: archange
Revision: 1238936
Initial addition of python-pygeos, required by geopandas
Added:
python-pygeos/
python-pygeos/repos/
python-pygeos/trunk/
python-pygeos/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Added: python-pygeos/trunk/PKGBUILD
===================================================================
--- python-pygeos/trunk/PKGBUILD (rev 0)
+++ python-pygeos/trunk/PKGBUILD 2022-06-22 11:43:39 UTC (rev 1238936)
@@ -0,0 +1,33 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=pygeos
+pkgname=python-${_pkg}
+pkgver=0.12.0
+pkgrel=2
+pkgdesc="Wraps GEOS geometry functions in numpy ufuncs"
+arch=(x86_64)
+url="https://pygeos.readthedocs.io/"
+license=(BSD)
+depends=(geos python-numpy)
+makedepends=(cython python-setuptools)
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('3c41542ef67c66015f443ae3e6e683503a8a221f9c24fb2380f6ae42aed1600a')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+# ModuleNotFoundError: No module named 'pygeos.lib'
+#check() {
+# cd ${_pkg}-${pkgver}
+# local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+# PYTHONPATH="${PWD}"/build/lib.linux-$CARCH-${python_version} pytest -vv --color=yes
+#}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
More information about the arch-commits
mailing list