blob: 88bd8825779253d90def7a45876bb68bd2a2214b (
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
|
# Maintainer: Paul Irofti <paul@irofti.net>
_name=wntr
pkgname="python-$_name"
pkgver=1.1.0
pkgrel=1
pkgdesc="Water Network Tool for Resilience"
url="https://github.com/USEPA/WNTR"
arch=('any')
license=('Revised BSD')
depends=(python python-numpy python-scipy python-networkx python-pandas
python-matplotlib)
makedepends=(python-setuptools 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=('aed676833b6ca19b095ad26b7f0028107afef5a5c75a8aaed0ff98014405d752')
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:
|