# Maintainer: Pedro Filipe <xpecex@outlook.com>
pkgname=py3-fastimport
pkgver=0.9.14
pkgrel=2
pkgdesc="VCS fastimport/fastexport parser"
arch="noarch"
url="https://github.com/jelmer/python-fastimport"
license="GPL-2.0-only"
depends="python3"
makedepends="git py3-setuptools"
subpackages="$pkgname-pyc"
source="https://github.com/jelmer/python-fastimport/archive/refs/tags/fastimport-$pkgver.tar.gz"
builddir="$srcdir/python-fastimport-fastimport-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest fastimport.tests.test_suite
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/fastimport/tests
}

sha512sums="
9cc6408ba974d0583d7c0526db3d3bf61e5cfd844e0a771e3a9204f3e9f3003b7ac821d328bb6df9a06c50ab5eed23df48e0dc2baa5d10c06d2d4bab31c20942  fastimport-0.9.14.tar.gz
"
