[arch-commits] Commit in python-pyogrio/repos (2 files)
Bruno Pagani
archange at gemini.archlinux.org
Wed Jun 22 11:09:10 UTC 2022
Date: Wednesday, June 22, 2022 @ 11:09:10
Author: archange
Revision: 1238935
archrelease: copy trunk to community-x86_64
Added:
python-pyogrio/repos/community-x86_64/
python-pyogrio/repos/community-x86_64/PKGBUILD
(from rev 1238934, python-pyogrio/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-pyogrio/repos/community-x86_64/PKGBUILD (from rev 1238934, python-pyogrio/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-06-22 11:09:10 UTC (rev 1238935)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=pyogrio
+pkgname=python-${_pkg}
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="Vectorized vector I/O using OGR"
+arch=(x86_64)
+url="https://pyogrio.readthedocs.io/"
+license=(MIT)
+depends=(gdal python-certifi python-numpy)
+makedepends=(cython python-setuptools)
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('85480e687872a3e3b11b3e2147e8aa779e28f165c60e01b2102971c895b84b82')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+# ModuleNotFoundError: No module named 'pyogrio._ogr' even when setting PYTHONPATH or using a venv
+#check() {
+# cd ${_pkg}-${pkgver}
+# 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