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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 20:03:16 UTC 2019


    Date: Friday, October 25, 2019 @ 20:03:15
  Author: felixonmars
Revision: 519697

archrelease: copy trunk to community-staging-any

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

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

Copied: python-schema/repos/community-staging-any/PKGBUILD (from rev 519695, python-schema/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 20:03:15 UTC (rev 519697)
@@ -0,0 +1,31 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+
+_name=schema
+pkgname="python-$_name"
+pkgver=0.7.1
+pkgrel=2
+pkgdesc='Python module to validate and convert data structures.'
+arch=(any)
+url="https://github.com/keleshev/$_name"
+depends=(python python-contextlib2)
+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=('c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959')
+
+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