| 1 | # Contributor: Coco Liliace <[email protected]> |
| 2 | # Maintainer: Robert Mongold <[email protected]> |
| 3 | _pyname=irc |
| 4 | pkgname=py3-$_pyname |
| 5 | pkgver=20.5.0 |
| 6 | pkgrel=0 |
| 7 | pkgdesc="Full-featured Python IRC library" |
| 8 | url="https://github.com/jaraco/irc" |
| 9 | arch="noarch" |
| 10 | license="MIT" |
| 11 | depends=" |
| 12 | py3-jaraco.collections |
| 13 | py3-jaraco.text |
| 14 | py3-jaraco.logging |
| 15 | py3-jaraco.functools |
| 16 | py3-jaraco.stream |
| 17 | py3-more-itertools |
| 18 | py3-tempora |
| 19 | " |
| 20 | makedepends="py3-gpep517 py3-setuptools_scm py3-wheel" |
| 21 | checkdepends="py3-pytest" |
| 22 | subpackages="$pkgname-pyc" |
| 23 | source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/i/irc/irc-$pkgver.tar.gz |
| 24 | python-3.14-asyncio.patch |
| 25 | " |
| 26 | builddir="$srcdir/$_pyname-$pkgver" |
| 27 | |
| 28 | _distname=".dist" |
| 29 | |
| 30 | build() { |
| 31 | export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver |
| 32 | gpep517 build-wheel --output-fd 3 --wheel-dir "$_distname" 3>&1 >&2 |
| 33 | } |
| 34 | |
| 35 | check() { |
| 36 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 37 | .testenv/bin/python3 -m installer "$_distname"/*.whl |
| 38 | .testenv/bin/python3 -m pytest |
| 39 | } |
| 40 | |
| 41 | package() { |
| 42 | gpep517 install-wheel --destdir "$pkgdir" "$_distname"/*.whl |
| 43 | } |
| 44 | |
| 45 | sha512sums=" |
| 46 | 599cc837d8f624699004eb01181af6437e5a3d15e647f6d3ac8b014bfed467196ac3850f4d3ed33095f7a64177b0b22959f46e3b80aaa9c93570d141ace9a9d0 py3-irc-20.5.0.tar.gz |
| 47 | 5d65da2f8c0bf8816188ae5218238ddc53c6cebf58cad49894ce691785d1fcd56954739a46900bd9219345e69973b058bbb185a47e0e7f237a4e4c1659e247ab python-3.14-asyncio.patch |
| 48 | " |