blob: 7ba15b3ca584065d9b1eb7b11fb1b24a2a227734 (
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
|
# Maintainer: Damian Höster <damian dot hoester at posteo dot de>
_pkgname=argparse-range
pkgname=python-$_pkgname
pkgver=0.1.2
pkgrel=1
pkgdesc='Easily check that an argument is within a range for argparse'
arch=(any)
url=https://github.com/aatifsyed/argparse-range
license=(MIT)
depends=('python>=3.8' 'python<4.0')
makedepends=(
python-build
python-poetry-core
python-installer
)
_sourcehost=https://files.pythonhosted.org/packages/source/a
source=(${_pkgname}-$pkgver.tar.gz::$_sourcehost/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=(b99df03820ab1b1b662efac08c990253cc18718124e1d59f27f2e6dca0292224)
build() {
cd ${_pkgname}-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd ${_pkgname}-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
|