[arch-commits] Commit in python-pygeos/repos (2 files)

Bruno Pagani archange at gemini.archlinux.org
Wed Jun 22 11:43:54 UTC 2022


    Date: Wednesday, June 22, 2022 @ 11:43:53
  Author: archange
Revision: 1238937

archrelease: copy trunk to community-x86_64

Added:
  python-pygeos/repos/community-x86_64/
  python-pygeos/repos/community-x86_64/PKGBUILD
    (from rev 1238936, python-pygeos/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-pygeos/repos/community-x86_64/PKGBUILD (from rev 1238936, python-pygeos/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-06-22 11:43:53 UTC (rev 1238937)
@@ -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