Date: Saturday, December 3, 2022 @ 13:18:10 Author: arojas Revision: 1356332
New wxpython dependency Added: python-attrdict/ python-attrdict/trunk/ python-attrdict/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: python-attrdict/trunk/PKGBUILD =================================================================== --- python-attrdict/trunk/PKGBUILD (rev 0) +++ python-attrdict/trunk/PKGBUILD 2022-12-03 13:18:10 UTC (rev 1356332) @@ -0,0 +1,32 @@ +# Maintainer: +# Contributor: Donald Webster <[email protected]> + +pkgname=python-attrdict +_name=${pkgname#python-} +pkgver=2.0.1 +pkgrel=5 +pkgdesc='A library that provides mapping objects that allow their elements to be accessed both as keys and as attributes' +arch=(any) +url='https://pypi.org/project/attrdict/' +license=(MIT) +depends=(python) +makedepends=(python-build python-installer python-setuptools python-wheel) +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") +sha256sums=('35c90698b55c683946091177177a9e9c0713a0860f0e049febd72649ccd77b70') + +prepare() { + cd $_name-$pkgver +# Fix for python 3.10 + find . -type f -iname '*.py' -exec sed -i 's/collections/collections.abc/g' {} + +} + +build() { + cd $_name-$pkgver + python -m build --wheel --no-isolation +} + +package() { + cd $_name-$pkgver + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname +}
