Date: Tuesday, April 25, 2023 @ 16:12:02
  Author: jelle
Revision: 1448680

archrelease: copy trunk to community-staging-any

Added:
  python-pydle/repos/community-staging-any/
  python-pydle/repos/community-staging-any/PKGBUILD
    (from rev 1448679, python-pydle/trunk/PKGBUILD)
  python-pydle/repos/community-staging-any/fix-python-dependencies.patch
    (from rev 1448679, python-pydle/trunk/fix-python-dependencies.patch)

-------------------------------+
 PKGBUILD                      |   42 ++++++++++++++++++++++++++++++++++++++++
 fix-python-dependencies.patch |   12 +++++++++++
 2 files changed, 54 insertions(+)

Copied: python-pydle/repos/community-staging-any/PKGBUILD (from rev 1448679, 
python-pydle/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-25 16:12:02 UTC (rev 1448680)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pydle
+pkgver=1.0.0
+pkgrel=2
+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";
+       "fix-python-dependencies.patch")
+sha512sums=('0d9e2e04b5043a514651211a57d7078f220c01a39719ee5b00117006176576900cc689e21ea1440498a879e7b336d6d76a302265e2eccd98517e1b82dd536b31'
+            
'c9523de9ded3051eee2272f8fccf858d24ae77a28d0fc2a648b086eab59179dd0318de49f6f39c72da28f9ee50d8a80c3c4690cee9fa2e9efbd325ff9e4ece96')
+
+prepare() {
+  cd pydle-$pkgver
+  # https://github.com/Shizmob/pydle/issues/162
+  sed -i '/loop=self.eventloop/d' pydle/connection.py
+
+  patch -Np1 -i ${srcdir}/fix-python-dependencies.patch
+}
+
+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/
+}

Copied: python-pydle/repos/community-staging-any/fix-python-dependencies.patch 
(from rev 1448679, python-pydle/trunk/fix-python-dependencies.patch)
===================================================================
--- community-staging-any/fix-python-dependencies.patch                         
(rev 0)
+++ community-staging-any/fix-python-dependencies.patch 2023-04-25 16:12:02 UTC 
(rev 1448680)
@@ -0,0 +1,12 @@
+diff -aur pydle-1.0.0/pyproject.toml pydle-1.0.0.new/pyproject.toml
+--- pydle-1.0.0/pyproject.toml 2022-07-04 20:38:02.000000000 +0200
++++ pydle-1.0.0.new/pyproject.toml     2023-04-25 18:05:46.084537460 +0200
+@@ -8,7 +8,7 @@
+ license = "BSD"
+ 
+ [tool.poetry.dependencies]
+-python = ">=3.6;<3.10"
++python = "3.11"
+ 
+ [tool.poetry.dependencies.pure-sasl]
+ version = "^0.6.2"

Reply via email to