1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/community/py3-pywal/APKBUILD
mio 2ea58cf4ad community/py3-pywal: build with gpep517, fix running tests
Switch to gpep517 and fix check failure due to removed `setup.py test` command,
which was deprecated in setuptools 72.0.0.

```
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'test'
```

Ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/17110
2025-05-03 12:12:32 +00:00

44 lines
1.3 KiB
Text

# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-pywal
pkgver=3.3.0
pkgrel=9
pkgdesc="Generate and change colorschemes on the fly"
url="https://github.com/dylanaraps/pywal/"
arch="noarch"
license="MIT"
depends="
imagemagick
python3
"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="imagemagick-jpeg"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/pywal/pywal-$pkgver.tar.gz
fix-tmp-dir.patch
imagemagick-7.1.patch
"
builddir="$srcdir/pywal-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m unittest -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
e8469ae1cb6596e78e9100907115e2075cfe6f984751e9972c36e60e27d1c379b4e8d2c5ef90becb689bcfcc1efb9702392e64602dbb93f903e12f3881ed42ce pywal-3.3.0.tar.gz
12d5f79025af53f4dc4bacbdd9c6c6abfc648de81cd69c32a6c29f90870ce82725c5aef8ae40290d8e52f3088a34229fc64f0097b66f7c9cdd45c9955184b650 fix-tmp-dir.patch
2b763c538c4165b399788b5338d9a986890a345b5b34f075ed89b7e5bc632111635ceac3b5662605471eeed18cb5080830cdb0936796ad1841cbf2fa7d20eb5e imagemagick-7.1.patch
"