blob: 2c2d27ba51c28f824a70aa2a45e66d69e62e1a49 (
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
41
42
43
44
45
46
47
48
49
|
# Maintainer: Groctel <aur@taxorubio.com>
# shellcheck disable=SC2034,SC2154,SC2164
_name=cloup
pkgname=python-cloup
pkgver=3.0.5
pkgrel=1
pkgdesc="Cloup (= Click + groups) contains a set of Click extensions for multiple purposes."
arch=("any")
license=("MIT")
url="https://github.com/janLuke/cloup"
source=("https://github.com/janLuke/$_name/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('04cd5fa7474448b9524d20b082d246a7aa0e19c14dba61640573b189c86f8ad639d2c38258df545cc0d179606e84284a4f0b305b512d33d182fbc3861eb60c64')
depends=(
"python"
"python-click"
"python-typing_extensions"
)
makedepends=(
"python-build"
"python-installer"
"python-setuptools"
"python-setuptools-scm"
"python-wheel"
)
checkdepends=(
"python-pytest"
)
build () {
cd "$srcdir/$_name-$pkgver"
SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} \
python -m build --wheel --no-isolation
}
check () {
cd "$srcdir/$_name-$pkgver"
pytest
}
package () {
cd "$srcdir/$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_name/LICENSE"
}
|