From db8d6761c9d425d5625cde6673faa1e1e7de9d53 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 2 Sep 2019 13:38:19 +0200 Subject: python2-uncertainties new --- python2-uncertainties/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 python2-uncertainties/PKGBUILD diff --git a/python2-uncertainties/PKGBUILD b/python2-uncertainties/PKGBUILD new file mode 100644 index 00000000..0bafdae7 --- /dev/null +++ b/python2-uncertainties/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Erich Eckner +# Contributor: Felix Yan + +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 +} -- cgit v1.2.3-70-g09d2