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

Felix Yan felixonmars at archlinux.org
Sun Feb 16 11:37:24 UTC 2020


    Date: Sunday, February 16, 2020 @ 11:37:23
  Author: felixonmars
Revision: 572352

archrelease: copy trunk to community-testing-any

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

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

Copied: python-cachetools/repos/community-testing-any/PKGBUILD (from rev 572351, python-cachetools/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-02-16 11:37:23 UTC (rev 572352)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cachetools
+pkgver=4.0.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=('d0711fef71ef51fe8860a1ca9f14faa76ec6bad1e40a2f6a2ba49f550f15d83d1531770e451e6b180ec77f66f3b382ce4d7c0ec2253782f8057c4e254aee6852')
+
+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