# Maintainer: Fantix King # Maintainer: Yuuta Liang pkgname=python-immutables pkgver=0.20 pkgrel=1 epoch= pkgdesc="A high-performance immutable mapping type for Python" arch=(x86_64) url="https://github.com/MagicStack/immutables" license=('custom') groups=() depends=('python') makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') checkdepends=() optdepends=() provides=() conflicts=() replaces=() backup=() options=() install= changelog= _name=${pkgname#python-} source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") noextract=() md5sums=('34b027e8f17f66770f14f35abb260efc') validpgpkeys=() prepare() { cd "$_name-$pkgver" } build() { cd "$_name-$pkgver" python -m build --wheel --no-isolation } check() { cd "$_name-$pkgver" PYTHONPATH=$(ls -d build/lib*) IMMU_SKIP_MYPY_TESTS=1 python tests/__init__.py -v } package() { cd "$_name-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl mkdir -p $pkgdir/usr/share/licenses/${pkgname}/ install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/ }