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

David Runge dvzrv at archlinux.org
Tue Mar 24 18:00:08 UTC 2020


    Date: Tuesday, March 24, 2020 @ 18:00:01
  Author: dvzrv
Revision: 603880

archrelease: copy trunk to community-x86_64

Added:
  python-cytoolz/repos/community-x86_64/
  python-cytoolz/repos/community-x86_64/PKGBUILD
    (from rev 603879, python-cytoolz/trunk/PKGBUILD)

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

Copied: python-cytoolz/repos/community-x86_64/PKGBUILD (from rev 603879, python-cytoolz/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-03-24 18:00:01 UTC (rev 603880)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=cytoolz
+pkgname=python-cytoolz
+pkgver=0.10.1
+pkgrel=2
+pkgdesc="Cython implementation of Toolz: High performance functional utilities"
+arch=('x86_64')
+url="https://github.com/pytoolz/cytoolz/"
+license=('BSD')
+depends=('cython' 'python-toolz')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('55c4fca8d4ace766a8241a25a6c4924971b7e7068ee79ad65fa8aac136aa1f88e57337c0ec278ee9e8544c6e96dd31138b39d7cc28cd91ff0e53a71f8dec55d1')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build_ext --inplace --with-cython
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  export PYTHONPATH="build/lib.linux-${CARCH}-${_pyver}/:${PYTHONPATH}"
+  echo "$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