--- PKGBUILD 2023-04-17 16:58:52.956492891 +0200 +++ PKGBUILD 2023-04-17 17:02:16.298006536 +0200 @@ -2,14 +2,14 @@ pkgname=python-characteristic pkgver=14.3.0 -pkgrel=16 +pkgrel=17 pkgdesc="Python attributes without boilerplate." arch=('any') license=('MIT') url="https://pypi.python.org/pypi/characteristic" depends=('python') -makedepends=('python-setuptools') -checkdepends=('python-pytest-runner') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +checkdepends=('python-pytest') source=("https://files.pythonhosted.org/packages/source/c/characteristic/characteristic-$pkgver.tar.gz"{,.asc}) sha256sums=('ded68d4e424115ed44e5c83c2a901a0b6157a959079d7591d92106ffd3ada380' 'SKIP') @@ -21,16 +21,16 @@ build() { cd "$srcdir"/characteristic-$pkgver - python setup.py build + python -m build --wheel } check() { cd "$srcdir"/characteristic-$pkgver - python setup.py test + pytest -v } package_python-characteristic() { cd characteristic-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }