[arch-commits] Commit in python-uncertainties/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Jan 9 00:10:16 UTC 2020
Date: Thursday, January 9, 2020 @ 00:10:15
Author: felixonmars
Revision: 550922
archrelease: copy trunk to community-testing-any
Added:
python-uncertainties/repos/community-testing-any/
python-uncertainties/repos/community-testing-any/PKGBUILD
(from rev 550921, python-uncertainties/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-uncertainties/repos/community-testing-any/PKGBUILD (from rev 550921, python-uncertainties/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-01-09 00:10:15 UTC (rev 550922)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-uncertainties
+pkgver=3.1.2
+pkgrel=3
+pkgdesc="Transparent calculations with uncertainties on the quantities involved (aka error propagation); fast calculation of derivatives."
+arch=('any')
+license=('BSD')
+url="https://github.com/lebigot/uncertainties"
+depends=('python')
+optdepends=('python-numpy: additional support for NumPy arrays and matrices')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-numpy' 'python-tests')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/lebigot/uncertainties/archive/$pkgver.tar.gz")
+sha512sums=('78e8173f134138371834e7556c2eebc15bd2aa624addbdc77553997c269a88a51e80e00d89051cbbed8f709437b49e051f6df3a7b598e21bf0bf07bf05934ded')
+
+build() {
+ cd uncertainties-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd uncertainties-$pkgver
+ python setup.py nosetests
+}
+
+package() {
+ cd uncertainties-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
More information about the arch-commits
mailing list