[arch-commits] Commit in python-cerberus/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 16:06:22 UTC 2021
Date: Tuesday, November 30, 2021 @ 16:06:22
Author: felixonmars
Revision: 1057819
archrelease: copy trunk to community-staging-any
Added:
python-cerberus/repos/community-staging-any/
python-cerberus/repos/community-staging-any/PKGBUILD
(from rev 1057818, python-cerberus/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-cerberus/repos/community-staging-any/PKGBUILD (from rev 1057818, python-cerberus/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 16:06:22 UTC (rev 1057819)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cerberus
+pkgver=1.3.4
+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' 'python-pytest-benchmark')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pyeve/cerberus/archive/$pkgver.tar.gz")
+sha512sums=('c816b426ed1b32367d1e8f1c26d6ddd4b49c6578540e688baf693e3094a05800f645cfe879be6378c1e9be9899cad7bc2ad1ed9844d6762d2ef6e0cc54a7476a')
+
+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