# Contributor: Robert Sacks # Maintainer: Robert Sacks pkgname=py3-testresources pkgver=2.0.1 pkgrel=6 pkgdesc="A pyunit extension for managing expensive test resources" url="https://launchpad.net/testresources" arch="noarch" license="Apache-2.0 OR BSD-3-Clause" depends="python3" makedepends="py3-gpep517 py3-setuptools py3-wheel py3-pbr" checkdepends="py3-testtools" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/t/testresources/testresources-$pkgver.tar.gz 0001-Refactor-failIf-to-assertFalse-for-Python-3.12-Compa.patch" builddir="$srcdir/testresources-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m testtools.run discover } package() { python3 -m installer -d "$pkgdir" .dist/*.whl rm -rf "$pkgdir"/usr/lib/python3*/site-packages/testresources/tests/ } sha512sums=" 0b23432b019400fe378e957d14a91083eef7fe1130a494b567a5274d69e4e8e09ab75861e5453c3f217507e144cf179c908f84dd1a807992d4bee0b8d32cb0f4 testresources-2.0.1.tar.gz 61e0133cf96d5cb0a9800e0ccff34161b496516d0eea600d9dc97cbb65e0181f7e2e7f60fd70c129b4e4381f4431f8c6629e81c67e396c4955ffb3502f83996d 0001-Refactor-failIf-to-assertFalse-for-Python-3.12-Compa.patch "