# Contributor: Newbyte <newbyte@disroot.org>
# Maintainer: Newbyte <newbyte@disroot.org>
pkgname=py3-baron
pkgver=0.10.1
pkgrel=2
pkgdesc="Full Syntax Tree for Python to make writing refactoring code a realist task"
url="https://github.com/PyCQA/baron"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3 py3-rply"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/b/baron/baron-$pkgver.tar.gz"
builddir="$srcdir/baron-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
65793e966c596af599512a3a8cbb9515bbbbc4a0f99e1294aa64225d529aafad6147ce25ee0bbb721d7651f8de1ba208567684dd9a592a4a56086aaf219df26f  baron-0.10.1.tar.gz
"
