Date: Saturday, April 8, 2023 @ 07:22:10
  Author: felixonmars
Revision: 1442106

archrelease: copy trunk to community-staging-any

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

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

Copied: python-histoprint/repos/community-staging-any/PKGBUILD (from rev 
1442105, python-histoprint/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 07:22:10 UTC (rev 1442106)
@@ -0,0 +1,31 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+_pkgname='histoprint'
+pkgname="python-${_pkgname}"
+pkgver='2.4.0'
+pkgrel=2
+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' 'python-uhi')
+makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 
'python-setuptools-scm' 'python-toml')
+checkdepends=('python-pytest')
+source=("${pkgname}-${pkgver}::git+${url}#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  PYTHONPATH="${PWD}/build/lib" pytest
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Reply via email to