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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 15:33:41 UTC 2020


    Date: Monday, November 9, 2020 @ 15:33:41
  Author: foutrelis
Revision: 746976

archrelease: copy trunk to community-staging-any

Added:
  python-cached-property/repos/community-staging-any/
  python-cached-property/repos/community-staging-any/PKGBUILD
    (from rev 746975, python-cached-property/trunk/PKGBUILD)

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

Copied: python-cached-property/repos/community-staging-any/PKGBUILD (from rev 746975, python-cached-property/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:33:41 UTC (rev 746976)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cached-property
+pkgver=1.5.2
+pkgrel=2
+pkgdesc="A decorator for caching properties in classes"
+arch=('any')
+license=('BSD')
+url="https://github.com/pydanny/cached-property"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-freezegun')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pydanny/cached-property/archive/$pkgver.tar.gz")
+sha512sums=('71ce8376c5d90c8e97dc91af7a9329d3645a311c7cc41cf052074989430de68b66efc17c62c6780982f500b3d09a12cb24613df7b4f1bff95cf68f6442f50d0d')
+
+build() {
+  cd cached-property-$pkgver
+  python setup.py build
+}
+
+check() {
+  # https://github.com/pydanny/cached-property/issues/131
+  cd cached-property-$pkgver
+  py.test || echo "Tests failed"
+}
+
+package() {
+  cd cached-property-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list