# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=py3-rope pkgver=1.9.0 pkgrel=0 pkgdesc="Python refactoring library" url="https://github.com/python-rope/rope" arch="noarch" license="LGPL-3.0-only" depends="py3-pytoolconfig" makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-build py3-pytest " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/python-rope/rope/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/rope-$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 # test_search_submodule fails to find env from py3-build .testenv/bin/python3 -m pytest -k 'not test_search_submodule' } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 981417018064754cd11e418e01c52e907749fad2f28715ade1a806b2e99ef2b2495c2251638687cbc15eda26a2d99ad9c4d9fee35684feef25183a111d9b2c3d py3-rope-1.9.0.tar.gz "