# Contributor: Sören Tempel # Maintainer: pkgname=py3-unidiff pkgver=0.7.5 pkgrel=0 pkgdesc="Unified diff python parsing/metadata extraction library" url="https://github.com/matiasb/python-unidiff" arch="noarch" license="MIT" depends="python3" makedepends="py3-setuptools" subpackages="$pkgname-doc $pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/matiasb/python-unidiff/archive/refs/tags/v$pkgver.tar.gz fix-test-script.patch" builddir="$srcdir/python-unidiff-$pkgver" build() { python3 setup.py build } check() { sh run_tests.sh } package() { python3 setup.py install --skip-build --root="$pkgdir" mkdir -p "$pkgdir"/usr/share/doc/$pkgname install -m644 README.rst HISTORY AUTHORS \ "$pkgdir"/usr/share/doc/$pkgname } sha512sums=" 50955aae18e9f16f515c539ef19a0238010003fc2ecf20d61c0f291a65719f90fb3aac1210f30a9b1ff47cda58d1e0bd92b2c23e5c0e380120a22dd57e9230fc py3-unidiff-0.7.5.tar.gz 3c42b36da7a549d59647a2a489cb85f45d5d51c839b206893e39f2bc5fc14917719e1aa5cd1042758c55bc7a218c63f1df3bb76c28c57724cc6a890ecafa64bc fix-test-script.patch "