blob: 788ea2867f371ee9e67ef0a652b51cfd8746fef5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor graziano.giuliani <graziano.giuliani@gmail.com>
# Contributor: Rich Lindsley <rich at dranek dot com>
## GPG key: https://github.com/djhoese.gpg
pkgname=pyresample
pkgrel=1
pkgver=1.25.0
_commit=93df018
pkgdesc="Geospatial image resampling in Python"
arch=('x86_64')
license=('LGPL3')
url="https://github.com/pytroll/pyresample"
depends=(
'python>=3.8'
'python-configobj'
'python-numpy'
'python-pykdtree'
'python-pyproj'
'python-setuptools'
'python-yaml')
optdepends=(
'python-numexpr: used to optimize some bottlenecks'
'python-cartopy'
'python-dask'
'python-matplotlib'
'python-rasterio'
'python-shapely'
'python-xarray'
'python-zarr')
makedepends=(
'cython'
'git'
'python-build'
'python-installer'
'python-oldest-supported-numpy'
'python-versioneer-518'
'python-wheel')
provides=('python-pyresample')
source=("$pkgname::git+$url#commit=$_commit?signed"
'setup.py.patch')
sha256sums=('SKIP'
'f51c28743db217f124f33c42334a97cc86d01cd9a96728f67ca3c05de39042f9')
validpgpkeys=('0CEE1C80170AEA74FEEF700DD0DB5057C9F9D380') ## David Hoese
prepare() {
patch -p1 -d "$pkgname" < setup.py.patch
sed -i "s/\$PKGVER/$pkgver/" "$pkgname/setup.py"
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname"
PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl
}
|