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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 20:23:37 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:23:37
  Author: foutrelis
Revision: 1058184

archrelease: copy trunk to community-staging-any

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

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

Copied: python-toolz/repos/community-staging-any/PKGBUILD (from rev 1058181, python-toolz/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:23:37 UTC (rev 1058184)
@@ -0,0 +1,38 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=toolz
+pkgname=python-toolz
+pkgver=0.11.2
+pkgrel=2
+pkgdesc="A functional standard library for Python"
+arch=('any')
+url="https://github.com/pytoolz/toolz/"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('67e8aaea3f9fb8811027f19aa9cf56ab980e4f9cea43978ed9515662c78a7bea12314054b2c26da483b055382d4b080125c011fc43bc48b0965a6ff8415f7168')
+b2sums=('3a2baddae437272e8f3efb665b63df127b3ec6bc2a68f3381651a1a3a3b45e4de6e575a328306fac95e9261228ee91193effd4aeca8d115f1608cb2561d50f13')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --optimize=1 --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list