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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 05:06:03 UTC 2020


    Date: Tuesday, November 10, 2020 @ 05:06:02
  Author: felixonmars
Revision: 749297

archrelease: copy trunk to community-staging-any

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

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

Copied: python-schema/repos/community-staging-any/PKGBUILD (from rev 749296, python-schema/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 05:06:02 UTC (rev 749297)
@@ -0,0 +1,39 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+
+_name=schema
+pkgname="python-$_name"
+pkgver=0.7.3
+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=('4cf529318cfd1e844ecbe02f41f7e5aa027463e7403666a52746f31f04f47a5e')
+
+prepare() {
+  cd "$srcdir/$_name-$pkgver"
+  # accept arbitrary versions
+  sed 's|==|>=|g' -i requirements.txt
+}
+
+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"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list