[arch-commits] Commit in python-param/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 16:32:58 UTC 2020
Date: Monday, November 9, 2020 @ 16:32:57
Author: felixonmars
Revision: 747509
archrelease: copy trunk to community-staging-any
Added:
python-param/repos/community-staging-any/
python-param/repos/community-staging-any/PKGBUILD
(from rev 747508, python-param/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-param/repos/community-staging-any/PKGBUILD (from rev 747508, python-param/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 16:32:57 UTC (rev 747509)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=param
+pkgname=python-${_pkg}
+pkgver=1.9.3
+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-nose 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=('c489599c2510849381404fcf34c18449dd15fa4a545ea1fd436f528ee5e878d2')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ PARAM_TEST_NUMPY=1 PARAM_TEST_PANDAS=1 PARAM_TEST_PANDAS=1 nosetests
+}
+
+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}
+}
More information about the arch-commits
mailing list