Date: Wednesday, March 9, 2022 @ 10:20:52 Author: alerque Revision: 1145654
Initial add of python-zipfile-deflate64 as new dependency of python-py7zr Added: python-zipfile-deflate64/ python-zipfile-deflate64/repos/ python-zipfile-deflate64/trunk/ python-zipfile-deflate64/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Added: python-zipfile-deflate64/trunk/PKGBUILD =================================================================== --- python-zipfile-deflate64/trunk/PKGBUILD (rev 0) +++ python-zipfile-deflate64/trunk/PKGBUILD 2022-03-09 10:20:52 UTC (rev 1145654) @@ -0,0 +1,38 @@ +# Maintainer: Caleb Maclennan <ca...@alerque.com> + +pkgname=python-zipfile-deflate64 +_pyname=${pkgname#python-} +pkgver=0.2.0 +pkgrel=1 +pkgdesc='Extract Deflate64 ZIP archives with Python’s zipfile API' +arch=(x86_64) +url="https://github.com/brianhelba/${_pyname}" +license=(Apache) +depends=(python) +makedepends=(python-{build,installer} + python-setuptools-scm + python-wheel) +# checkdepends=(python-pytest) +_archive="$_pyname-$pkgver" +# No tests in PyPi sources +source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz") +# No version information in archive +# source=("$url/archive/v$pkgver/$_archive.tar.gz") +sha256sums=('875a3299de102edf1c17f8cafcc528b1ca80b62dc4814b9cb56867ec59fbfd18') + +build(){ + cd "$_archive" + python -m build -wn +} + +# check() { +# cd "$_archive" +# local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') +# export PYTHONPATH="$PWD/build/lib.linux-$CARCH-$_pyver" +# python -m pytest tests +# } + +package() { + cd "$_archive" + python -m installer -d "$pkgdir" dist/*.whl +}