# Maintainer: Carlos Aznarán # Contributor: algebro _base=eth-utils pkgname=python-$_base pkgver=4.1.1 pkgrel=1 pkgdesc="Common utility functions for python code that interacts with Ethereum" arch=(x86_64) url="https://github.com/ethereum/${_base}" license=(MIT) depends=(python-eth-hash python-eth-typing python-cytoolz) makedepends=(python-build python-installer python-setuptools python-wheel) source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) sha512sums=('dd0f59e6f822a92f469bf4a0e6c7fe3de14b85f63338293d1e234a269422f0340bfe92b4dd745d146078460ebba91b7b6d490e786833cf709eb4d32d85434a8e') 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}" }