[arch-commits] Commit in python-histoprint/repos (2 files)

Konstantin Gizdov kgizdov at archlinux.org
Wed Feb 10 19:41:03 UTC 2021


    Date: Wednesday, February 10, 2021 @ 19:41:02
  Author: kgizdov
Revision: 854015

archrelease: copy trunk to community-testing-any

Added:
  python-histoprint/repos/community-testing-any/
  python-histoprint/repos/community-testing-any/PKGBUILD
    (from rev 854014, python-histoprint/trunk/PKGBUILD)

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

Copied: python-histoprint/repos/community-testing-any/PKGBUILD (from rev 854014, python-histoprint/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-02-10 19:41:02 UTC (rev 854015)
@@ -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