[arch-commits] Commit in (8 files)

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


    Date: Saturday, March 30, 2019 @ 21:29:23
  Author: bluewind
Revision: 446417

Add python-internetarchive for Arch Linux Archive (ALA)

Added:
  python-internetarchive/
  python-internetarchive/repos/
  python-internetarchive/trunk/
  python-internetarchive/trunk/PKGBUILD
  python-schema/
  python-schema/repos/
  python-schema/trunk/
  python-schema/trunk/PKGBUILD

---------------------------------------+
 python-internetarchive/trunk/PKGBUILD |   54 ++++++++++++++++++++++++++++++++
 python-schema/trunk/PKGBUILD          |   31 ++++++++++++++++++
 2 files changed, 85 insertions(+)

Added: python-internetarchive/trunk/PKGBUILD
===================================================================
--- python-internetarchive/trunk/PKGBUILD	                        (rev 0)
+++ python-internetarchive/trunk/PKGBUILD	2019-03-30 21:29:23 UTC (rev 446417)
@@ -0,0 +1,54 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: David McInnis <dave at dave3.xyz>
+# Contributor:  jyantis <yantis at yantis.net>
+
+pkgname=python-internetarchive
+pkgver=1.8.1
+pkgrel=1
+pkgdesc='Wrapper for the various Internet Archive APIs (IA-S3, Metadata API, etc)'
+arch=('any')
+url='https://github.com/jjjake/ia-wrapper'
+license=('AGPL3')
+depends=('python'
+         'python-setuptools'
+         'python-clint'
+         'python-six'
+         'python-yaml'
+         'python-requests'
+         'python-jsonpatch'
+         'python-pytest'
+         'python-docopt'
+         'python-jsonpointer'
+         'python-args'
+         # seem unnecessary?
+         #'python-backports.csv'
+         'python-schema'
+        )
+optdepends=('python-ujson: faster json parsing'
+            'python-gevent: concurrent downloads'
+            'cython: speedups')
+checkdepends=(python-responses)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jjjake/internetarchive/archive/v${pkgver}.tar.gz")
+sha256sums=('9db8b179434521345a93a01e73669b9fd9a8949f8a75b52fcf22f3de865229c7')
+
+build() {
+  cd internetarchive-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd internetarchive-${pkgver}
+
+  python setup.py test
+}
+
+package() {
+  cd internetarchive-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -D -m644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
+}
+
+# vim:set ts=2 sw=2 et:
+

Added: python-schema/trunk/PKGBUILD
===================================================================
--- python-schema/trunk/PKGBUILD	                        (rev 0)
+++ python-schema/trunk/PKGBUILD	2019-03-30 21:29:23 UTC (rev 446417)
@@ -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