blob: cefb443085e6effa8f7dbef8aff788aa13cd3218 (
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
36
|
# Maintainer: Paul Irofti <paul@irofti.net>
_name=wntr
pkgname="python-$_name"
pkgver=1.3.2
pkgrel=2
pkgdesc="Water Network Tool for Resilience"
url="https://github.com/USEPA/WNTR"
arch=('any')
license=('Revised BSD')
depends=(python
python-numpy
python-setuptools
python-scipy
python-networkx
python-pandas
python-matplotlib)
makedepends=(swig)
# Clone Github for evaluator.i and other files needed by swig.
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('34a8464d33b1446161c44abe0af0eb87e4684b2fea42aad612962dbed91e39c7')
build() {
cd "$srcdir/$_name-$pkgver"
python setup.py build_ext --inplace
python setup.py build
}
package() {
cd "$srcdir/$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
# vim:set sw=2 et:
|