[arch-commits] Commit in (4 files)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Mon Feb 7 10:42:46 UTC 2022


    Date: Monday, February 7, 2022 @ 10:42:45
  Author: kgizdov
Revision: 1127476

initial release

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

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

Added: python-mplhep/trunk/PKGBUILD
===================================================================
--- python-mplhep/trunk/PKGBUILD	                        (rev 0)
+++ python-mplhep/trunk/PKGBUILD	2022-02-07 10:42:45 UTC (rev 1127476)
@@ -0,0 +1,35 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+_pkgname='mplhep'
+pkgname="python-${_pkgname}"
+pkgver='0.3.15'
+pkgrel=1
+pkgdesc="A set of helpers for matplotlib to more easily produce plots typically needed in HEP."
+arch=('any')
+url='https://github.com/scikit-hep/mplhep'
+license=('MIT')
+depends=('python-numpy' 'python-matplotlib' 'python-mplhep_data' 'python-uhi' 'python-packaging')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm')
+checkdepends=('python-pytest' 'python-pytest-mock' 'python-importlib-metadata' 'python-boost-histogram' 'python-scipy' 'python-uproot')
+source=("${pkgname}::git+${url}#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+  cd "${srcdir}/${pkgname}"
+  python setup.py bdist_egg
+}
+
+check() {
+  cd "${srcdir}/${pkgname}"
+  find tests -type f -exec sed \
+      -e 's at uproot4@uproot at g' \
+      -i {} \;
+  # some tests fail because of unpackaged deps
+  # PYTHONPATH="${PWD}/build/lib:${PWD}/src" pytest
+}
+
+package() {
+  cd "${srcdir}/${pkgname}"
+  python setup.py install  --skip-build --root="${pkgdir}/" --optimize=1
+  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list