Date: Thursday, April 13, 2023 @ 08:33:15 Author: alex19ep Revision: 1445747
add python-immutabledict Added: python-immutabledict/ python-immutabledict/repos/ python-immutabledict/trunk/ python-immutabledict/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: python-immutabledict/trunk/PKGBUILD =================================================================== --- python-immutabledict/trunk/PKGBUILD (rev 0) +++ python-immutabledict/trunk/PKGBUILD 2023-04-13 08:33:15 UTC (rev 1445747) @@ -0,0 +1,32 @@ +# Maintainer: Alexander Epaneshnikov <[email protected]> + +pkgname=python-immutabledict +pkgver=2.2.4 +pkgrel=1 +pkgdesc="Immutable wrapper around dictionaries (a fork of frozendict)" +arch=('any') +url=https://github.com/corenting/immutabledict +license=('MIT') +depends=('python') +checkdepends=('python-pytest') +makedepends=('python-build' 'python-installer' 'python-wheel' 'python-poetry-core') +source=("$pkgname-$pkgver.tar.gz::https://github.com/corenting/immutabledict/archive/refs/tags/v$pkgver.tar.gz") +sha512sums=('577070b9fff7937c92059de4d2db675c6d365b63c61d2b7a0ad8f774bb3cc8885a5e12cf8a2df5f23022740e3b1e8e2e3b8b8fdd486bdbf9dacb03ae5a063641') + +build() { + cd "immutabledict-$pkgver" + python -m build --wheel --skip-dependency-check --no-isolation +} + +check() { + cd "immutabledict-$pkgver" + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest +} + +package() { + cd "immutabledict-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE +}
