| 1 | # Contributor: Russ Webber <[email protected]> |
| 2 | # Maintainer: Russ Webber <[email protected]> |
| 3 | pkgname=py3-rospkg |
| 4 | _pkgname=rospkg |
| 5 | pkgver=1.6.1 |
| 6 | pkgrel=1 |
| 7 | pkgdesc="Standalone Python library for the ROS package system" |
| 8 | url="http://wiki.ros.org/rospkg" |
| 9 | arch="noarch" |
| 10 | license="BSD-3-Clause" |
| 11 | depends="python3 py3-yaml py3-catkin-pkg py3-distro" |
| 12 | makedepends="py3-gpep517 py3-setuptools" |
| 13 | checkdepends="py3-pytest" |
| 14 | |
| 15 | subpackages="$pkgname-pyc" |
| 16 | source="$pkgname-$pkgver.tar.gz::https://github.com/ros-infrastructure/rospkg/archive/$pkgver.tar.gz |
| 17 | loongarch.patch |
| 18 | " |
| 19 | builddir="$srcdir/$_pkgname-$pkgver" |
| 20 | |
| 21 | build() { |
| 22 | gpep517 build-wheel \ |
| 23 | --wheel-dir .dist \ |
| 24 | --output-fd 3 3>&1 >&2 |
| 25 | } |
| 26 | |
| 27 | check() { |
| 28 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 29 | .testenv/bin/python3 -m installer .dist/*.whl |
| 30 | .testenv/bin/python3 -m pytest |
| 31 | } |
| 32 | |
| 33 | package() { |
| 34 | python3 -m installer -d "$pkgdir" \ |
| 35 | .dist/*.whl |
| 36 | } |
| 37 | |
| 38 | sha512sums=" |
| 39 | ce30f39eceb5b316fd6ba6be4f1ec90d6cdde38d46e92ca0819b2f7f1c1858e902df08ab6eb528c57d34289d9169ad614acc00a99d066c40b5efc5a82a16320a py3-rospkg-1.6.1.tar.gz |
| 40 | 217ae6f0c8ddefa24c45baf1764e5c281c8b13e6a59697dfedd079e61564acbe838ff659e8205b48edb7a8283fa0ff32b5183639290501c97df72ba80e2f453e loongarch.patch |
| 41 | " |