summaryrefslogtreecommitdiff
path: root/python2-uncertainties/PKGBUILD
blob: 0bafdae76d0a30db9ccb23824b23d57c3c3c5991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
}