Date: Thursday, July 7, 2022 @ 07:42:23 Author: alerque Revision: 1247588
Initial add of python-pybcj, new dependency for python-py7zr Added: python-pybcj/ python-pybcj/repos/ python-pybcj/trunk/ python-pybcj/trunk/PKGBUILD ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Added: python-pybcj/trunk/PKGBUILD =================================================================== --- python-pybcj/trunk/PKGBUILD (rev 0) +++ python-pybcj/trunk/PKGBUILD 2022-07-07 07:42:23 UTC (rev 1247588) @@ -0,0 +1,36 @@ +# Maintainer: Caleb Maclennan <[email protected]> +# Contributor: loathingkernel <username at gmail dot com> + +pkgname=python-pybcj +_pyname=${pkgname#python-} +pkgver=0.6.1 +pkgrel=1 +pkgdesc='BCJ (Branch-Call-Jump) filter for python' +arch=(x86_64) +url="https://github.com/miurahr/$_pyname" +license=(LGPL) +depends=(python) +makedepends=(python-{build,installer,wheel} + python-setuptools-scm) +checkdepends=(python-pytest + python-hypothesis) +_archive="$_pyname-$pkgver" +source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz") +sha256sums=('82c948fd899061af8b8763ad1c1b89aae681abd31bbf493b0d6e9ef50b9aaf00') + +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 -rsx +} + +package() { + cd "$_archive" + python -m installer -d "$pkgdir" dist/*.whl +}
