# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-unidiff
_pyname=unidiff
pkgver=0.7.3
pkgrel=0
pkgdesc="Unified diff python parsing/metadata extraction library"
url="https://pypi.org/project/unidiff/"
arch="noarch"
license="MIT"
makedepends="py3-setuptools py3-pytest"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
replaces="py-unidiff py2-unidiff"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 setup.py build
}
check() {
pytest-3
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
451bc765532329c0963961afd15e061e3bcbd85a16cb799310ae0fd34b534f6222514ed4825f90c5ae9ea1b3b0e11a8e169b7991ba9ed82c33325ccb3b10a3b0 unidiff-0.7.3.tar.gz
"