[arch-commits] Commit in python-cerberus/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat May 25 17:36:42 UTC 2019


    Date: Saturday, May 25, 2019 @ 17:36:42
  Author: felixonmars
Revision: 470711

archrelease: copy trunk to community-any

Added:
  python-cerberus/repos/community-any/
  python-cerberus/repos/community-any/PKGBUILD
    (from rev 470710, python-cerberus/trunk/PKGBUILD)

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

Copied: python-cerberus/repos/community-any/PKGBUILD (from rev 470710, python-cerberus/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-05-25 17:36:42 UTC (rev 470711)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cerberus
+pkgver=1.3.1
+pkgrel=1
+pkgdesc="Lightweight, extensible schema and data validation tool for Python dictionaries"
+url="https://github.com/pyeve/cerberus"
+license=('ISC')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pyeve/cerberus/archive/$pkgver.tar.gz")
+sha512sums=('c81655b52a15b0ab9795ea6363654f52327927241a09a5e283f8a380dd13e27d0eae8a5e7c14415d18ba1fce2f2fcab39d477d02365b13a78709cae594111d76')
+
+build() {
+  cd cerberus-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd cerberus-$pkgver
+  python setup.py pytest --addopts cerberus
+}
+
+package() {
+  cd cerberus-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list