blob: 5225200b4fa223dfd76b593a016cece9f7194375 (
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
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-configargparse
pkgver=0.14.0
pkgrel=2
pkgdesc='A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables'
arch=('any')
url='https://github.com/zorro3/ConfigArgParse'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
checkdepends=('python-yaml')
optdepends=('python-yaml: for YAML support')
source=("$pkgname-$pkgver.tar.gz::https://github.com/bw2/ConfigArgParse/archive/$pkgver.tar.gz")
sha512sums=('e48ca61027abf0e0acb8414b6d89b276b186b4f714368b8c33975537c2264bb2d81f18cf3013b99d9ce752014361afa973f704b3f6957ca4b98319bb0ca5ca8c')
build() {
cd ConfigArgParse-$pkgver
python setup.py build
}
check() {
cd ConfigArgParse-$pkgver
python setup.py test || warning 'Ignoring TestWrappingMetavar failure'
}
package() {
cd ConfigArgParse-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|