[arch-commits] Commit in python-binary-memcached/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Dec 3 22:21:57 UTC 2021
Date: Friday, December 3, 2021 @ 22:21:57
Author: felixonmars
Revision: 1064901
archrelease: copy trunk to community-staging-any
Added:
python-binary-memcached/repos/community-staging-any/
python-binary-memcached/repos/community-staging-any/PKGBUILD
(from rev 1064900, python-binary-memcached/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-binary-memcached/repos/community-staging-any/PKGBUILD (from rev 1064900, python-binary-memcached/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-03 22:21:57 UTC (rev 1064901)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-binary-memcached
+pkgver=0.30.1
+pkgrel=3
+arch=('any')
+pkgdesc='A pure python module to access memcached via its binary protocol with SASL auth support'
+url='https://github.com/jaysonsantos/python-binary-memcached'
+license=('MIT')
+depends=('python-six' 'python-uhashring')
+makedepends=('python-setuptools' 'python-uhashring')
+checkdepends=('memcached' 'python-pytest' 'python-trustme')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jaysonsantos/python-binary-memcached/archive/v$pkgver.tar.gz")
+sha512sums=('48cb475121b7ed8e30f4c029f53fa8761089649525b17300da0bbba4f9a996880983805553140dfb457c5836e83a5f16f50fe9995fc68cd534eda4f34028bfd7')
+
+prepare() {
+ sed -i '/typing/d' python-binary-memcached-$pkgver/setup.py
+}
+
+build() {
+ cd python-binary-memcached-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd python-binary-memcached-$pkgver
+ python -m pytest
+}
+
+package() {
+ cd python-binary-memcached-$pkgver
+ 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