blob: 2895b89abd951dfbdf2c5aaef717c9de769d73dc (
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
|
# Maintainer: peippo <christoph.fink@gmail.com>
pkgname="python-geoalchemy2"
_name=${pkgname#python-}
pkgdesc="Using SQLAlchemy with Spatial Databases"
url="https://geoalchemy-2.readthedocs.io/"
pkgver=0.16.0
pkgrel=1
arch=("any")
license=("MIT")
depends=(
"python"
"python-packaging"
"python-shapely"
"python-sqlalchemy>=1.4"
)
makedepends=(
"python-build"
"python-installer"
"python-setuptools-scm"
"python-wheel"
)
checkdepends=(
"flake8"
"python-alembic"
"python-mysqlclient"
"python-pytest"
"python-pytest-cov"
"python-pytest-html"
"python-pytest-mypy"
"python-rasterio"
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
b2sums=("5e266321cbbedef746341eb7c09300d7d5de2b0e9f21a05e2e190b04dabf414de69e62b7dd2952e2fc1ac4293e32c9b3075b5895c7d681a759f2789ffe9e00fd")
build() {
cd "${srcdir}"/${_name}-${pkgver}
python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}"/${_name}-${pkgver}
python -m pytest --exitfirst -k "not mysql and not postgresql and not mariadb"
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 COPYING.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|