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

Konstantin Gizdov kgizdov at archlinux.org
Tue Jan 7 21:37:05 UTC 2020


    Date: Tuesday, January 7, 2020 @ 21:37:04
  Author: kgizdov
Revision: 550106

archrelease: copy trunk to community-testing-any

Added:
  python-uproot/repos/community-testing-any/
  python-uproot/repos/community-testing-any/PKGBUILD
    (from rev 550105, python-uproot/trunk/PKGBUILD)

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

Copied: python-uproot/repos/community-testing-any/PKGBUILD (from rev 550105, python-uproot/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-01-07 21:37:04 UTC (rev 550106)
@@ -0,0 +1,44 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+pkgname=python-uproot
+_pkgname=uproot
+pkgname=python-uproot
+pkgver=3.11.0
+pkgrel=1
+pkgdesc="Minimalist CERN ROOT I/O in pure Python and Numpy"
+arch=('any')
+makedepends=('python-cachetools' 'python-setuptools')
+checkdepends=('python-mock' 'python-pkgconfig' 'python-pandas' 'python-pytest-runner' 'python-requests' 'python-xxhash')
+depends=('python-awkward' 'python-cachetools' 'python-lz4' 'python-numpy' 'python-uproot-methods')
+optdepends=('xrootd: access remote files over XRootD'
+            'python-pandas: fill Pandas DataFrames instead of Numpy arrays'
+            'python-requests: access remote files through HTTP'
+            'python-xxhash: handle lz4-compressed ROOT files')
+url="https://github.com/scikit-hep/uproot"
+license=('BSD')
+
+source=("${url}/archive/${pkgver}.zip")
+sha256sums=('dac040aa98cefd87464124ad37a3d46ca21c84d1b4af50fcf38e1aeeb39a5605')
+
+build() {
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+    python setup.py pytest
+}
+
+package() {
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+
+    python setup.py install --root="${pkgdir}/" --optimize=1
+
+    install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+    install -D README.rst "${pkgdir}/usr/share/${pkgname}/README.rst"
+
+    install -d "${pkgdir}/usr/share/doc/${pkgname}"
+    cp -r docs "${pkgdir}/usr/share/doc/${pkgname}/"
+}



More information about the arch-commits mailing list