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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:35:01 UTC 2020


    Date: Monday, November 9, 2020 @ 15:35:01
  Author: felixonmars
Revision: 746995

archrelease: copy trunk to community-staging-any

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

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

Copied: python-cachetools/repos/community-staging-any/PKGBUILD (from rev 746992, python-cachetools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:35:01 UTC (rev 746995)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cachetools
+pkgver=4.1.1
+pkgrel=2
+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=('c5d8a304defd0d9cd767b4e00f70c8df31067003afec43459db239d9c59c582fe6454c2956f5092e15b464bf53adf33a1214c1d03bd2dca610b112b9a63b7a06')
+
+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