[arch-commits] Commit in python-func-timeout/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 05:00:52 UTC 2020
Date: Tuesday, November 10, 2020 @ 05:00:52
Author: foutrelis
Revision: 749227
archrelease: copy trunk to community-staging-any
Added:
python-func-timeout/repos/community-staging-any/
python-func-timeout/repos/community-staging-any/PKGBUILD
(from rev 749226, python-func-timeout/trunk/PKGBUILD)
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Copied: python-func-timeout/repos/community-staging-any/PKGBUILD (from rev 749226, python-func-timeout/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 05:00:52 UTC (rev 749227)
@@ -0,0 +1,28 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-func-timeout
+pkgver=4.3.5
+pkgrel=2
+pkgdesc="Python module which allows you to specify timeouts when calling any existing function. Also provides support for stoppable-threads"
+url="https://github.com/kata198/func_timeout"
+license=('LGPL')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kata198/func_timeout/archive/$pkgver.tar.gz")
+sha512sums=('0711b8bdd2b55e7473fb525e70b0e6596bb11ba074e6110c52e7fdc842d87ef2d57307f02af86eef1b1e7e4c84a9faf25ec450d25addce3ebb93e3d341b566ac')
+
+build() {
+ cd func_timeout-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd func_timeout-$pkgver
+ python testit.py
+}
+
+package() {
+ cd func_timeout-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list