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

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


    Date: Sunday, March 15, 2020 @ 11:45:36
  Author: felixonmars
Revision: 597836

archrelease: copy trunk to community-any

Added:
  python-validators/repos/community-any/
  python-validators/repos/community-any/PKGBUILD
    (from rev 597835, python-validators/trunk/PKGBUILD)

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

Copied: python-validators/repos/community-any/PKGBUILD (from rev 597835, python-validators/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-03-15 11:45:36 UTC (rev 597836)
@@ -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