summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0f2528a447c1fe51820bf4d42b87fd593a60d0c (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
# Maintainer: Michael Schubert <mschu.dev at gmail> github.com/mschubert/PKGBUILDs
pkgname=python-pydstool
_pkgname=PyDSTool
pkgver=0.91.0
pkgrel=1
pkgdesc="Simulation and analysis environment for dynamical systems"
url="http://pydstool.sf.net/"
license=('BSD')
arch=('any')
depends=('python-numpy' 'python-scipy')
replaces=('python2-pydstool')
makedepends=('dos2unix' 'python-setuptools')
optdepends=('python-sloppycell')
checkdepends=('python-pytest-mock' 'python-pytest-xdist')
source=($_pkgname-$pkgver.tar.gz::https://github.com/robclewley/$_pkgname/archive/v$pkgver.tar.gz)
options=('!emptydirs')
sha256sums=('828730549872851ff78746e17421ad66ce0dfd74026539bc72247f405f5768f7')

build() {
  cd "${_pkgname,,}-$pkgver"
  python setup.py build
}

check_disabled() { # multiple python3 errors
  cd "${_pkgname,,}-$pkgver"
  python setup.py test
}

package() {
  cd "${_pkgname,,}-$pkgver"
  python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}