Date: Saturday, May 25, 2019 @ 17:36:26 Author: felixonmars Revision: 470710
addpkg: python-cerberus 1.3.1-1 Added: python-cerberus/ python-cerberus/repos/ python-cerberus/trunk/ python-cerberus/trunk/PKGBUILD ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Added: python-cerberus/trunk/PKGBUILD =================================================================== --- python-cerberus/trunk/PKGBUILD (rev 0) +++ python-cerberus/trunk/PKGBUILD 2019-05-25 17:36:26 UTC (rev 470710) @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <[email protected]> + +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/ +}
