upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-pyppmd / trunk / PKGBUILD
blobcdde877b36995acdb734ee4191d02d17ca6f8248
1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
3 pkgname=python-pyppmd
4 _pyname=${pkgname#python-}
5 pkgver=1.0.0
6 pkgrel=2
7 pkgdesc='PPM compression/decompression library'
8 arch=(x86_64)
9 url="https://codeberg.org/miurahr/$_pyname"
10 license=(LGPL)
11 depends=(python)
12 makedepends=(python-{build,installer,wheel}
13              python-setuptools-scm)
14 checkdepends=(python-pytest-benchmark python-py-cpuinfo python-hypothesis)
15 _archive="$_pyname-$pkgver"
16 source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/${_pyname}/$_archive.tar.gz")
17 sha256sums=('075c9bd297e3b0a87dd7aeabca7fee668218acbe69ecc1c6511064558de8840f')
19 build() {
20         cd "$_archive"
21         python -m build -wn
24 check() {
25         cd "$_archive"
26         local _pyver=cpython-$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
27         export PYTHONPATH="$PWD/build/lib.linux-$CARCH-$_pyver"
28         python -m pytest
31 package() {
32         cd "$_archive"
33         python -m installer -d "$pkgdir" dist/*.whl