Date: Monday, April 24, 2023 @ 18:04:11
  Author: felixonmars
Revision: 1448564

archrelease: copy trunk to community-staging-any

Added:
  python-mplhep/repos/community-staging-any/
  python-mplhep/repos/community-staging-any/PKGBUILD
    (from rev 1448563, python-mplhep/trunk/PKGBUILD)

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

Copied: python-mplhep/repos/community-staging-any/PKGBUILD (from rev 1448563, 
python-mplhep/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-24 18:04:11 UTC (rev 1448564)
@@ -0,0 +1,34 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+_pkgname='mplhep'
+pkgname="python-${_pkgname}"
+pkgver='0.3.26'
+pkgrel=2
+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-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-mock' 'python-importlib-metadata' 
'python-boost-histogram' 'python-scipy' 'python-uproot' 
'python-scikit-hep-testdata')
+source=("${pkgname}::git+${url}#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+  cd "${srcdir}/${pkgname}"
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "${srcdir}/${pkgname}"
+  find tests -type f -exec sed \
+      -e 's@uproot4@uproot@g' \
+      -i {} \;
+  PYTHONPATH="${PWD}/build/lib:${PWD}/src" pytest tests
+}
+
+package() {
+  cd "${srcdir}/${pkgname}"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Reply via email to