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

Felix Yan felixonmars at archlinux.org
Wed Nov 18 10:34:10 UTC 2020


    Date: Wednesday, November 18, 2020 @ 10:34:08
  Author: felixonmars
Revision: 757113

archrelease: copy trunk to community-staging-any

Added:
  python-socketpool/repos/community-staging-any/
  python-socketpool/repos/community-staging-any/PKGBUILD
    (from rev 757112, python-socketpool/trunk/PKGBUILD)

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

Copied: python-socketpool/repos/community-staging-any/PKGBUILD (from rev 757112, python-socketpool/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-18 10:34:08 UTC (rev 757113)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-socketpool
+pkgver=0.5.3
+pkgrel=7
+pkgdesc="A simple Python socket pool"
+arch=('any')
+license=('MIT')
+url="https://github.com/benoitc/socketpool"
+depends=('python')
+makedepends=('python-setuptools' 'git')
+checkdepends=('python-pytest')
+source=("git+https://github.com/benoitc/socketpool.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cd "$srcdir/socketpool"
+  sed -i 's/data_files.*$/)/' setup.py
+  sed -i 's/isAlive/is_alive/' socketpool/backend_thread.py
+}
+
+build() {
+  cd "$srcdir/socketpool"
+  LC_CTYPE=en_US.UTF-8 python setup.py build
+}
+
+check() {
+  cd "$srcdir/socketpool"
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" \
+  py.test tests/
+}
+
+package() {
+  cd socketpool
+  LC_CTYPE=en_US.UTF-8 python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list