[arch-commits] Commit in python-pydle/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Aug 12 19:26:06 UTC 2022


    Date: Friday, August 12, 2022 @ 19:26:06
  Author: felixonmars
Revision: 1265722

archrelease: copy trunk to community-testing-any

Added:
  python-pydle/repos/community-testing-any/
  python-pydle/repos/community-testing-any/PKGBUILD
    (from rev 1265721, python-pydle/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: python-pydle/repos/community-testing-any/PKGBUILD (from rev 1265721, python-pydle/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-08-12 19:26:06 UTC (rev 1265722)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pydle
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="A compact, flexible and standards-abiding IRC library"
+url="https://github.com/Shizmob/pydle"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-poetry-core')
+optdepends=('python-pure-sasl: for SASL support')
+checkdepends=('python-pytest-asyncio' 'python-pure-sasl')
+source=("https://github.com/Shizmob/pydle/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('0d9e2e04b5043a514651211a57d7078f220c01a39719ee5b00117006176576900cc689e21ea1440498a879e7b336d6d76a302265e2eccd98517e1b82dd536b31')
+
+prepare() {
+  cd pydle-$pkgver
+  # https://github.com/Shizmob/pydle/issues/162
+  sed -i '/loop=self.eventloop/d' pydle/connection.py
+}
+
+build() {
+  cd pydle-$pkgver
+  python -m build -nw
+}
+
+check() {
+  cd pydle-$pkgver
+  # https://github.com/Shizmob/pydle/issues/78
+  pytest || echo "Tests failed"
+}
+
+package() {
+  cd pydle-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list