# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer:
pkgname=py3-configargparse
_pkgname=ConfigArgParse
pkgver=0.15.2
pkgrel=0
pkgdesc="A drop-in replacement for argparse"
url="https://github.com/bw2/ConfigArgParse"
arch="noarch"
options="!check"  # https://github.com/bw2/ConfigArgParse/issues/146
license="MIT"
depends="python3"
makedepends="python3-dev python3-tests"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/bw2/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	mkdir -p "$pkgdir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="c8403751506b3ce096d707067659492422ecef8e684107935ab26f2e518c7c2c4baca8882cac55dd1961a86e5ad95b73389bc1a681cd2a67b5000bd6d626d2d9  py3-configargparse-0.15.2.tar.gz"