blob: 842dd65349e7b7d2f92ee5605851e85d3708e19a (
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
|
# 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=0.7.1
pkgrel=1
arch=('any')
license=('MIT')
depends=('python-bottleneck' 'python-numpy')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
checkdepends=('python-pytest')
source=(
"fudgeo-$pkgver.tar.gz::https://github.com/realiii/fudgeo/archive/refs/tags/v$pkgver.tar.gz"
)
sha256sums=(
'e46843548c6deff1575615d216d1715de7ea2006ed6502ce5bf64612d580eb21'
)
build() {
cd "fudgeo-$pkgver"
python -m build --no-isolation --wheel
}
check() {
cd "fudgeo-$pkgver/tests"
python -m venv --system-site-packages test-env
test-env/bin/python -m installer "../dist/fudgeo-$pkgver"*.whl
test-env/bin/python -m pytest
}
package() {
cd "fudgeo-$pkgver"
python -m installer --destdir="$pkgdir" "dist/fudgeo-$pkgver"*.whl
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|