[arch-commits] Commit in (4 files)

David Runge dvzrv at archlinux.org
Tue Mar 24 14:53:29 UTC 2020


    Date: Tuesday, March 24, 2020 @ 14:53:29
  Author: dvzrv
Revision: 603863

Adding python-toolz.

Added:
  python-toolz/
  python-toolz/repos/
  python-toolz/trunk/
  python-toolz/trunk/PKGBUILD

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

Added: python-toolz/trunk/PKGBUILD
===================================================================
--- python-toolz/trunk/PKGBUILD	                        (rev 0)
+++ python-toolz/trunk/PKGBUILD	2020-03-24 14:53:29 UTC (rev 603863)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=toolz
+pkgname=python-toolz
+pkgver=0.10.0
+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=('4ed40c165462440c6004974d2515067f211c625bebcb69ea854fd8837e1fe05febc546215355a6bb9de5916c8ba98a4d297f8aa20e40ffbc8a730b2bb3831a71')
+
+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 --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --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