[arch-commits] Commit in python-mplhep/repos (community-any community-any/PKGBUILD)
Konstantin Gizdov
kgizdov at gemini.archlinux.org
Mon Feb 7 10:43:01 UTC 2022
Date: Monday, February 7, 2022 @ 10:43:01
Author: kgizdov
Revision: 1127477
archrelease: copy trunk to community-any
Added:
python-mplhep/repos/community-any/
python-mplhep/repos/community-any/PKGBUILD
(from rev 1127476, python-mplhep/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-mplhep/repos/community-any/PKGBUILD (from rev 1127476, python-mplhep/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-02-07 10:43:01 UTC (rev 1127477)
@@ -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