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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 16:20:54 UTC 2020


    Date: Monday, November 9, 2020 @ 16:20:54
  Author: felixonmars
Revision: 747488

archrelease: copy trunk to community-staging-any

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

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

Copied: python-cerberus/repos/community-staging-any/PKGBUILD (from rev 747487, python-cerberus/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:20:54 UTC (rev 747488)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cerberus
+pkgver=1.3.2
+pkgrel=2
+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=('e9cfef5a936783eb0576afd3d23397dab38d8c88b6b43f98de0ad7e20739e5ff983eaf4ac769206adb7fe9692c651583f6a5f2bab263b81b8de96f45707c84fb')
+
+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