[arch-commits] Commit in (4 files)
David Runge
dvzrv at archlinux.org
Sat Jan 11 02:41:45 UTC 2020
Date: Saturday, January 11, 2020 @ 02:41:44
Author: dvzrv
Revision: 551885
Adding python-flufl-lock as replacement for python-flufl.lock (as the .lock postfix breaks svn2git branch).
Added:
python-flufl-lock/
python-flufl-lock/repos/
python-flufl-lock/trunk/
python-flufl-lock/trunk/PKGBUILD
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Added: python-flufl-lock/trunk/PKGBUILD
===================================================================
--- python-flufl-lock/trunk/PKGBUILD (rev 0)
+++ python-flufl-lock/trunk/PKGBUILD 2020-01-11 02:41:44 UTC (rev 551885)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=flufl.lock
+pkgname=python-flufl-lock
+pkgver=3.2
+pkgrel=3
+pkgdesc="NFS-safe file locking with timeouts for POSIX systems for Python"
+arch=('any')
+url="https://flufllock.readthedocs.io/en/latest/"
+license=('Apache')
+depends=('python-atpublic')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+replaces=(python-flufl.lock)
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('496195e1c52f628bc6c0e8fc3dcd5373ed01cfee35b6165cae37ab4b90d70265c6a0aea565f1e0663277c2b9e9bafde8af1420133a15e6254275fad2f28a56d0')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list