summaryrefslogtreecommitdiff
path: root/python2-uncertainties/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-02 13:38:19 +0200
committerErich Eckner <git@eckner.net>2019-09-02 13:38:19 +0200
commitdb8d6761c9d425d5625cde6673faa1e1e7de9d53 (patch)
tree87bf704cfa72f6e4d81a4ef40c93d1b2737c61d1 /python2-uncertainties/PKGBUILD
parent77fd2a8f00a42a7aa0cbf5f3cedd0abb7f1a1088 (diff)
downloadarchlinuxewe-db8d6761c9d425d5625cde6673faa1e1e7de9d53.tar.xz
python2-uncertainties new
Diffstat (limited to 'python2-uncertainties/PKGBUILD')
-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
+}