Date: Tuesday, November 30, 2021 @ 20:20:27 Author: felixonmars Revision: 1058044
archrelease: copy trunk to community-staging-any Added: python-param/repos/community-staging-any/ python-param/repos/community-staging-any/PKGBUILD (from rev 1058042, python-param/trunk/PKGBUILD) ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Copied: python-param/repos/community-staging-any/PKGBUILD (from rev 1058042, python-param/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2021-11-30 20:20:27 UTC (rev 1058044) @@ -0,0 +1,32 @@ +# Maintainer: Bruno Pagani <archa...@archlinux.org> + +_pkg=param +pkgname=python-${_pkg} +pkgver=1.12.0 +pkgrel=2 +pkgdesc="Make your Python code clearer and more reliable by declaring Parameters" +arch=(any) +url="https://param.holoviz.org/" +license=(BSD) +makedepends=(python-setuptools) +checkdepends=(python-pytest python-jsonschema python-numpy python-pandas ipython) +# No tests in Pypi tarballs +#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz) +source=(https://github.com/holoviz/param/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz) +sha256sums=('adb5a87a8cd8709635297568fc97c3a3d23f9342dd66b46c06646c4187499964') + +build() { + cd ${_pkg}-${pkgver} + python setup.py build +} + +check() { + cd ${_pkg}-${pkgver} + PARAM_TEST_JSONSCHEMA=1 PARAM_TEST_NUMPY=1 PARAM_TEST_PANDAS=1 PARAM_TEST_IPYTHON=1 pytest tests --color=yes +} + +package() { + cd ${_pkg}-${pkgver} + python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1 + install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname} +}