summaryrefslogtreecommitdiff
path: root/python2-uncertainties
diff options
context:
space:
mode:
Diffstat (limited to 'python2-uncertainties')
-rw-r--r--python2-uncertainties/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/python2-uncertainties/PKGBUILD b/python2-uncertainties/PKGBUILD
new file mode 100644
index 000000000..0bafdae76
--- /dev/null
+++ b/python2-uncertainties/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+
+pkgname=python2-uncertainties
+pkgver=3.1.2
+pkgrel=1
+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=(
+ 'python2>=2.7'
+ 'python2<2.8'
+)
+optdepends=('python2-numpy: additional support for NumPy arrays and matrices')
+makedepends=('python2-setuptools')
+checkdepends=('python2-nose' 'python2-numpy')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/lebigot/uncertainties/archive/$pkgver.tar.gz")
+sha512sums=('78e8173f134138371834e7556c2eebc15bd2aa624addbdc77553997c269a88a51e80e00d89051cbbed8f709437b49e051f6df3a7b598e21bf0bf07bf05934ded')
+
+build() {
+ cd uncertainties-$pkgver
+ python2 setup.py build
+}
+
+check() {
+ cd uncertainties-$pkgver
+ python2 setup.py nosetests
+}
+
+package() {
+ cd uncertainties-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}