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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 16:06:30 UTC 2019


    Date: Friday, October 25, 2019 @ 16:06:29
  Author: felixonmars
Revision: 519377

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 519375, python-cached-property/trunk/PKGBUILD)

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

Copied: python-cached-property/repos/community-staging-any/PKGBUILD (from rev 519375, python-cached-property/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 16:06:29 UTC (rev 519377)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cached-property
+pkgver=1.5.1
+pkgrel=3
+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=('d6c2cd35d7781e3123c7c076681c0dbfd352b24f71b87e1689b304a5a65759d3f7a27e46a1ce5fe1571cbe6c0dc4981b1eb5eb8314b76b13aa15eb8429645a43')
+
+build() {
+  cd cached-property-$pkgver
+  python setup.py build
+}
+
+check() {
+  # https://github.com/pydanny/cached-property/issues/131
+  cd cached-property-$pkgver
+  py.test || warning "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