[arch-commits] Commit in python-schema/repos (community-any community-any/PKGBUILD)

Florian Pritz bluewind at archlinux.org
Sat Mar 30 21:30:09 UTC 2019


    Date: Saturday, March 30, 2019 @ 21:30:09
  Author: bluewind
Revision: 446418

archrelease: copy trunk to community-any

Added:
  python-schema/repos/community-any/
  python-schema/repos/community-any/PKGBUILD
    (from rev 446417, python-schema/trunk/PKGBUILD)

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

Copied: python-schema/repos/community-any/PKGBUILD (from rev 446417, python-schema/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-03-30 21:30:09 UTC (rev 446418)
@@ -0,0 +1,31 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+
+_name=schema
+pkgname="python-$_name"
+pkgver=0.7.0
+pkgrel=2
+pkgdesc='Python module to validate and convert data structures.'
+arch=(any)
+url="https://github.com/keleshev/$_name"
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-mock python-pytest)
+license=(MIT)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('44add3ef9016c85ac4b0291b45286a657d0df309b31528ca8d0a9c6d0aa68186')
+
+build() {
+	cd "$srcdir/$_name-$pkgver"
+    python setup.py build
+}
+
+check() {
+	cd "$srcdir/$_name-$pkgver"
+	python setup.py test
+}
+
+package() {
+	cd "$srcdir/$_name-$pkgver"
+    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+	install -D -m644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list