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

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 00:50:32 UTC 2021


    Date: Friday, December 3, 2021 @ 00:50:32
  Author: felixonmars
Revision: 1064096

archrelease: copy trunk to community-staging-any

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

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

Copied: python-internetarchive/repos/community-staging-any/PKGBUILD (from rev 1064095, python-internetarchive/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 00:50:32 UTC (rev 1064096)
@@ -0,0 +1,52 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: David McInnis <dave at dave3.xyz>
+# Contributor:  jyantis <yantis at yantis.net>
+
+pkgname=python-internetarchive
+pkgver=2.1.0
+pkgrel=2
+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-six'
+         'python-yaml'
+         'python-requests'
+         'python-jsonpatch'
+         'python-docopt'
+         'python-jsonpointer'
+         'python-args'
+         'python-tqdm'
+         'python-schema'
+        )
+makedepends=('python-setuptools')
+optdepends=('python-ujson: faster json parsing'
+            'python-gevent: concurrent downloads'
+            'cython: speedups')
+checkdepends=(python-responses
+              python-pytest
+             )
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jjjake/internetarchive/archive/v${pkgver}.tar.gz")
+sha256sums=('660f54d43e7d0ae4fa9e40fc7a38362d071e4d4bc19bdbe2fbe27e0c1874b1c5')
+
+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:



More information about the arch-commits mailing list