blob: 834ac78e218b41570548489b85a1ece403516bf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: xiretza <xiretza+aur@xiretza.xyz>
_pkgname='pyTooling'
pkgname=python-${_pkgname,,}
pkgver=8.4.7
pkgrel=1
pkgdesc="A powerful collection of arbitrary useful classes, decorators, meta-classes and exceptions"
arch=(any)
url="https://github.com/pyTooling/$_pkgname"
license=('Apache-2.0')
depends=('python' 'python-ruamel-yaml' 'python-colorama' 'python-setuptools')
makedepends=('python-build' 'python-installer' 'python-wheel')
checkdepends=(
'python-pytest'
'python-pytest-cov'
'mypy'
'python-typing_extensions'
'python-lxml'
'python-ruamel-yaml'
'python-colorama'
'git'
)
replaces=('python-pytooling-packaging' 'python-pymetaclasses' 'python-pyexceptions' 'python-pytooling-terminalui')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('0ed4f7e1ddb0902544cc1c814e543543a9fef20a87431509876ef6c4d71c3ad7')
build() {
cd "$_pkgname-$pkgver"
python -m build --wheel --no-isolation
}
check(){
cd "$_pkgname-$pkgver"
pytest --ignore tests/performance --ignore tests/benchmark tests/
}
package() {
cd "$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|