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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 20:17:13 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:17:13
  Author: foutrelis
Revision: 1057918

archrelease: copy trunk to community-staging-any

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

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

Copied: python-aioitertools/repos/community-staging-any/PKGBUILD (from rev 1057916, python-aioitertools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:17:13 UTC (rev 1057918)
@@ -0,0 +1,38 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aioitertools
+_pkgname=aioitertools
+pkgver=0.8.0
+pkgrel=2
+pkgdesc='Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables'
+arch=(any)
+url='https://github.com/omnilib/aioitertools'
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+source=("https://files.pythonhosted.org/packages/source/a/$_pkgname/$_pkgname-$pkgver.tar.gz")
+sha256sums=('8b02facfbc9b0f1867739949a223f3d3267ed8663691cc95abd94e2c1d8c2b46')
+
+prepare() {
+  cd $_pkgname-$pkgver
+  # setup.py generated by flit uses setuptools-specific install_requires but
+  # imports setup() from distutils.core
+  # https://github.com/takluyver/flit/blob/2.3.0/flit/sdist.py#L16
+  sed -i 's#distutils.core#setuptools#' setup.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+  python -m unittest -v aioitertools.tests
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list