diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,10 +1,10 @@ -# Maintainer: +# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com > # Contributor: Evgeniy Filimonov <evgfilim1 at gmail dot com> _pyname='magic-filter' pkgname="python-${_pyname}" pkgver=1.0.12 -pkgrel=1 +pkgrel=2 pkgdesc="A filter package based on dynamic attribute getter" arch=('any') url="https://github.com/aiogram/${_pyname}" @@ -17,6 +17,9 @@ makedepends=( 'python-hatchling' 'python-installer' ) +checkdepends=( + 'python-pytest' +) source=(https://github.com/aiogram/magic-filter/archive/v$pkgver/$_pyname-$pkgver.tar.gz) sha256sums=('e1bdaddbc2090a13883956c55bd0dd5b8affd0eeb825ce19ec5e891247f7c0cf') @@ -25,6 +28,11 @@ build() { python -m build --wheel --no-isolation } +check() { + cd ${_pyname}-${pkgver} + pytest +} + package() { cd ${_pyname}-${pkgver} python -m installer --destdir="${pkgdir}" dist/*.whl |