blob: 945f893b8feecca05ff082f7e071d7709d38964f (
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
|
# Maintainer: Sylvain POULAIN <sylvain.poulain at giscan dot com>
pkgname=python-morecantile
_pkgname=morecantile
pkgver=6.1.0
pkgrel=1
pkgdesc="Construct and use OGC TileMatrixSets (TMS)"
arch=('any')
url="https://github.com/developmentseed/morecantile"
license=('MIT')
depends=('python-pyproj' 'python-attrs' 'python-pydantic')
makedepends=('git' 'python-setuptools')
source=("$_pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('59e1bdfd79381bab245a9428941104ceee31c09461312ba63cd13a9ddda407bf')
build() {
cd "$srcdir/$_pkgname-$pkgver"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${_pkgname}"
# rm -r "${pkgdir}${site_packages}/${_base}"/tests/
# mv "${pkgdir}/usr/etc" "${pkgdir}/etc"
}
|