# Maintainer: Jan Niklas Böhm # Contributer: Caltlgin Stsodaat # Contributer: Eli Patterson # Contributer: Franz Müller _pkgname='osmnx' pkgname="python-${_pkgname}" pkgver=1.9.2 pkgrel=1 pkgdesc='Retrieve, model, analyze, and visualize OpenStreetMap street networks and other spatial data' arch=('any') url='https://github.com/gboeing/osmnx' _url_pypi='https://pypi.org/project/osmnx' license=('MIT') depends=( 'python-geopandas' 'python-networkx' 'python-numpy' 'python-pandas' 'python-requests' 'python-shapely' ) optdepends=( 'python-matplotlib: for visualization' 'python-scipy: for entropy' 'python-scikit-learn: for neighbors' 'python-gdal: for rasterization' 'python-rasterio: for rasterization' ) makedepends=('python-build' 'python-installer' 'python-wheel' 'python-hatchling') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") sha256sums=('59d21756ebdb4a4d211fb1373a3dca170832eec5f25ef94f5500bd79d32c169a') build() { cd "${_pkgname}-${pkgver}" python -m build --wheel --no-isolation } package() { cd "${_pkgname}-${pkgver}" python -m installer --destdir="$pkgdir" dist/*.whl install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}" install -Dvm644 'LICENSE.txt' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } # vim: ts=2 sw=2 et: