[arch-commits] Commit in python-hist/repos (community-any community-any/PKGBUILD)
Konstantin Gizdov
kgizdov at gemini.archlinux.org
Mon Feb 7 10:52:00 UTC 2022
Date: Monday, February 7, 2022 @ 10:52:00
Author: kgizdov
Revision: 1127485
archrelease: copy trunk to community-any
Added:
python-hist/repos/community-any/
python-hist/repos/community-any/PKGBUILD
(from rev 1127484, python-hist/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-hist/repos/community-any/PKGBUILD (from rev 1127484, python-hist/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-02-07 10:52:00 UTC (rev 1127485)
@@ -0,0 +1,33 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+_pkgname='hist'
+pkgname="python-${_pkgname}"
+pkgver='2.5.2'
+pkgrel=1
+pkgdesc="Python bindings for Boost's Histogram library."
+arch=('any')
+url='https://github.com/scikit-hep/hist'
+license=('custom:BSD3')
+depends=('python-boost-histogram' 'python-histoprint' 'python-typing_extensions')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm')
+checkdepends=('python-pytest' 'python-pytest-benchmark' 'python-pytest-mpl' 'python-mplhep' 'python-scipy')
+source=("${pkgname}-${pkgver}::git+${url}#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ # some tests fail because of unpackaged deps
+ # PYTHONPATH="${PWD}/build/lib" pytest
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ export PYTHONHASHSEED=0
+ 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