[arch-commits] Commit in python-pyproj/trunk (PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Mon Jun 27 21:14:00 UTC 2022
Date: Monday, June 27, 2022 @ 21:14:00
Author: archange
Revision: 1239759
upgpkg: python-pyproj 3.3.1-1
Modified:
python-pyproj/trunk/PKGBUILD
----------+
PKGBUILD | 37 ++++++++++++++++++++-----------------
1 file changed, 20 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-27 21:13:29 UTC (rev 1239758)
+++ PKGBUILD 2022-06-27 21:14:00 UTC (rev 1239759)
@@ -1,37 +1,40 @@
# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
pkgname=python-pyproj
-pkgver=3.0.1
-pkgrel=3
+pkgver=3.3.1
+pkgrel=1
pkgdesc="Python interfaces to PROJ.4 library"
-arch=('x86_64')
+arch=(x86_64)
url="https://github.com/pyproj4/pyproj"
-license=('custom')
-depends=('proj' 'python')
-makedepends=('python-setuptools' 'cython')
-source=($pkgname-$pkgver.tar.gz::https://github.com/pyproj4/pyproj/archive/$pkgver.tar.gz)
-sha256sums=('f078f1d2e4aee9e2006a985c768741eb152f94e0ada69e9db92015986fb9a4f6')
+license=(custom)
+depends=(proj python)
+makedepends=(python-setuptools cython)
+checkdepends=(python-pytest python-certifi python-numpy python-pandas python-shapely python-xarray)
+source=(https://github.com/pyproj4/pyproj/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('f4201ea962458c4da927ddd19f92fff3d81db8a78a9297269f56810dab01700c')
prepare() {
- cd "${srcdir}"
-
-# Remove RPATH
- sed -i '/runtime_library_dirs=/d' pyproj-$pkgver/setup.py
+ # Remove RPATH
+ sed -i '/runtime_library_dirs/d' pyproj-$pkgver/setup.py
}
build() {
- cd "${srcdir}"
-
export PROJ_DIR=/usr
-
cd pyproj-$pkgver
python setup.py build
}
+# Import issues, no time to investigate
+#check() {
+# cd pyproj-$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 "${srcdir}"/pyproj-$pkgver
+ cd pyproj-$pkgver
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
-
install -Dm644 LICENSE_proj4 "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
More information about the arch-commits
mailing list