# Maintainer: Carlos Aznarán # Contributor: algebro _base=eth-typing pkgname=python-${_base} pkgver=3.5.0 pkgrel=1 pkgdesc="Common type annotations for ethereum python packages" arch=(x86_64) url="https://github.com/ethereum/${_base}" license=(MIT) depends=(python) makedepends=(python-build python-installer python-setuptools python-wheel) source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) sha512sums=('3e0026a6564cb2b56c4951328fe0ea51a0b8874452676a52a045e5913be2a14a0fa9781b5210a6c0e457dd2f223e87eab8b1160c0a4411b32a3ec4e1dd226ca9') build() { cd ${_base}-${pkgver} python -m build --wheel --skip-dependency-check --no-isolation } package() { cd ${_base}-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" }