[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sun Mar 15 11:45:21 UTC 2020


    Date: Sunday, March 15, 2020 @ 11:45:20
  Author: felixonmars
Revision: 597835

addpkg: python-validators 0.14.2-1

Added:
  python-validators/
  python-validators/repos/
  python-validators/trunk/
  python-validators/trunk/PKGBUILD

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

Added: python-validators/trunk/PKGBUILD
===================================================================
--- python-validators/trunk/PKGBUILD	                        (rev 0)
+++ python-validators/trunk/PKGBUILD	2020-03-15 11:45:20 UTC (rev 597835)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-validators
+pkgver=0.14.2
+pkgrel=1
+pkgdesc="Python Data Validation for Humans"
+url="https://github.com/kvesteri/validators"
+license=('MIT')
+arch=('any')
+depends=('python-decorator' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kvesteri/validators/archive/$pkgver.tar.gz")
+sha512sums=('c38c0bd7c18e1a0e70c28bcb4730ef1b5ed71409e2bf40ea70dd75b6a3829a8b0ced00d110e1351aa087285260e8764eace9c19cb631198bf76cc4c3c0e33185')
+
+build() {
+  cd validators-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd validators-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd validators-$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