[arch-commits] Commit in python-wstools/repos (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Dec 7 11:49:21 UTC 2021


    Date: Tuesday, December 7, 2021 @ 11:49:20
  Author: felixonmars
Revision: 430777

archrelease: copy trunk to staging-any

Added:
  python-wstools/repos/staging-any/
  python-wstools/repos/staging-any/PKGBUILD
    (from rev 430776, python-wstools/trunk/PKGBUILD)
  python-wstools/repos/staging-any/python310.patch
    (from rev 430776, python-wstools/trunk/python310.patch)

-----------------+
 PKGBUILD        |   41 +++++++++++++++++++++++++++++++++++++++++
 python310.patch |   12 ++++++++++++
 2 files changed, 53 insertions(+)

Copied: python-wstools/repos/staging-any/PKGBUILD (from rev 430776, python-wstools/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2021-12-07 11:49:20 UTC (rev 430777)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-wstools
+pkgver=0.4.10
+pkgrel=5
+pkgdesc="WSDL parsing services package for Web Services for Python"
+arch=('any')
+url="https://github.com/pycontribs/wstools"
+license=('custom')
+depends=('python-six')
+makedepends=('python-pbr' 'python-setuptools')
+checkdepends=('python-pytest-runner' 'autopep8' 'python-pytest-cov')
+source=("https://github.com/pycontribs/wstools/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        python310.patch)
+sha512sums=('1acd8e62d71c7d330f1e953a0da1956291c5dfb25ff9b8b8799c83feaa4230e384955735b131bab7b430b92ae6c18498927d416d2d1e11fb5c5dad93417c671a'
+            'd1eb690578eaf7f5e79d9dbc0494b545d88e124e11f9927c5c17c9e64b7cba209fbe5ad68b43afd84c850d22c36133e39e305d214ea55e8a7935e06a465f8947')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+  cd wstools-$pkgver
+  patch -Np1 -i ../python310.patch
+}
+
+build() {
+  cd wstools-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd wstools-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd wstools-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -d "$pkgdir/usr/share/licenses/$pkgname"
+  install -Dm644 docs/* "$pkgdir/usr/share/licenses/$pkgname"/
+}

Copied: python-wstools/repos/staging-any/python310.patch (from rev 430776, python-wstools/trunk/python310.patch)
===================================================================
--- staging-any/python310.patch	                        (rev 0)
+++ staging-any/python310.patch	2021-12-07 11:49:20 UTC (rev 430777)
@@ -0,0 +1,12 @@
+diff -upr wstools-0.4.10.orig/wstools/Utility.py wstools-0.4.10/wstools/Utility.py
+--- wstools-0.4.10.orig/wstools/Utility.py	2020-04-15 17:15:13.000000000 +0300
++++ wstools-0.4.10/wstools/Utility.py	2021-12-07 13:46:43.544654058 +0200
+@@ -33,7 +33,7 @@ try:
+     from UserDict import DictMixin  # noqa
+ except ImportError:
+     from collections import UserDict
+-    from collections import MutableMapping as DictMixin  # noqa
++    from collections.abc import MutableMapping as DictMixin  # noqa
+ 
+ from .TimeoutSocket import TimeoutSocket, TimeoutError  # noqa
+ 



More information about the arch-commits mailing list