blob: 4dbf7f17546db10deaa9d2e1315e5e5307a0d1d7 (
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
|
# Maintainer: Blair Bonnett <blair.bonnett@gmail.com>
pkgname=python-fudgeo
pkgdesc='OGC GeoPackage support via Python and SQLite'
url='https://github.com/realiii/fudgeo'
pkgver=1.2.0
pkgrel=1
arch=('any')
license=('MIT')
depends=(
'python-bottleneck'
'python-numpy'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
checkdepends=(
'python-pytest'
)
source=(
"git+https://github.com/realiii/fudgeo.git#tag=v$pkgver"
)
sha256sums=(
'eeb6bfd86555add2eab1898602efb03e7fc00631c3e32f7813ea72c2cb92674e'
)
build() {
cd fudgeo
python -m build --no-isolation --wheel
}
check() {
cd fudgeo/tests
rm -rf test-env
python -m venv --system-site-packages test-env
test-env/bin/python -m installer "../dist/fudgeo-$pkgver"*.whl
test-env/bin/python -m pytest --ignore geometry/test_geometry.py -k 'not test_copy_feature_class and not test_explode_feature_class'
}
package() {
cd fudgeo
python -m installer --destdir="$pkgdir" "dist/fudgeo-$pkgver"*.whl
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|