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

Felix Yan felixonmars at archlinux.org
Thu Apr 9 00:39:07 UTC 2020


    Date: Thursday, April 9, 2020 @ 00:39:06
  Author: felixonmars
Revision: 612861

archrelease: copy trunk to community-testing-any

Added:
  python-cachetools/repos/community-testing-any/
  python-cachetools/repos/community-testing-any/PKGBUILD
    (from rev 612860, python-cachetools/trunk/PKGBUILD)

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

Copied: python-cachetools/repos/community-testing-any/PKGBUILD (from rev 612860, python-cachetools/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-04-09 00:39:06 UTC (rev 612861)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cachetools
+pkgver=4.1.0
+pkgrel=1
+pkgdesc="Extensible memoizing collections and decorators"
+url="https://github.com/tkem/cachetools"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tkem/cachetools/archive/v$pkgver.tar.gz")
+sha512sums=('7e8da8c0d4aa6928c3aa8a5578b6bf7bac20b1b45aaf01a079ba090c68442694ec9b65606bdd225dbd7c04d62ed77239c60947f74e90c7688088b14cdd59ee6b')
+
+build() {
+  cd "$srcdir"/cachetools-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/cachetools-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd cachetools-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list