[arch-commits] Commit in (4 files)
Konstantin Gizdov
kgizdov at archlinux.org
Wed Feb 10 19:40:53 UTC 2021
Date: Wednesday, February 10, 2021 @ 19:40:52
Author: kgizdov
Revision: 854013
initial release
Added:
python-histoprint/
python-histoprint/repos/
python-histoprint/trunk/
python-histoprint/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Added: python-histoprint/trunk/PKGBUILD
===================================================================
--- python-histoprint/trunk/PKGBUILD (rev 0)
+++ python-histoprint/trunk/PKGBUILD 2021-02-10 19:40:52 UTC (rev 854013)
@@ -0,0 +1,32 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+_pkgname='histoprint'
+pkgname="python-${_pkgname}"
+pkgver='1.6.0'
+pkgrel=1
+pkgdesc="Pretty print Numpy (and other) histograms to the console."
+arch=('any')
+url='https://github.com/scikit-hep/histoprint'
+license=('MIT')
+depends=('python-numpy' 'python-click')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm' 'python-toml')
+checkdepends=('python-pytest')
+source=("${pkgname}-${pkgver}::git+${url}#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ PYTHONPATH="${PWD}/build/lib" python tests/test.py
+}
+
+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