[arch-commits] Commit in (3 files)

Konstantin Gizdov kgizdov at archlinux.org
Mon Oct 14 16:17:10 UTC 2019


    Date: Monday, October 14, 2019 @ 16:17:10
  Author: kgizdov
Revision: 515728

move python-uproot to community

Added:
  python-uproot/
  python-uproot/trunk/
  python-uproot/trunk/PKGBUILD

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

Added: python-uproot/trunk/PKGBUILD
===================================================================
--- python-uproot/trunk/PKGBUILD	                        (rev 0)
+++ python-uproot/trunk/PKGBUILD	2019-10-14 16:17:10 UTC (rev 515728)
@@ -0,0 +1,44 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+pkgname=python-uproot
+_pkgname=uproot
+pkgname=python-uproot
+pkgver=3.10.6
+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-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=('1c3b5fd7f966f20cb50b175371037cda8b8326ca316541de4ae9d1c33a3c83b3')
+
+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