blob: ff1dc9a8cc0de0ff1b0a00158bc28b0c4b8f0c1a (
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
37
38
39
40
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
_base=myokit
pkgname=python-${_base}
pkgdesc="A modeling and simulation tool for cardiac cellular electrophysiology"
pkgver=1.37.0
pkgrel=1
arch=(any)
url="https://github.com/${_base}/${_base}"
license=(BSD-3-Clause)
depends=(python-lxml python-matplotlib sundials)
makedepends=(python-build python-installer python-setuptools python-wheel)
# checkdepends=(python-pytest)
optdepends=('python-sympy: for formats.sympy support'
'python-scipy: for data log viewer support'
'python-moviepy: for video support'
'python-pyqt6: for gui support')
source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
sha512sums=('dfd3445a89338e849365415ddc17e8faf924a81d7c14ae1b7149b6a18922d815136d883755c8af32027f0e99d65f11ee6e18578a63d45cf2e0bb974b6ecf1bce')
build() {
cd ${_base}-${pkgver}
python -m build --wheel --skip-dependency-check --no-isolation
}
# check() {
# cd ${_base}-${pkgver}
# python -m venv --system-site-packages test-env
# test-env/bin/python -m installer dist/*.whl
# test-env/bin/python -m pytest ${_base}/tests \
# --ignore=myokit/tests/test_simulation_cvodes.py \
# --ignore=myokit/tests/test_simulation_log_interval.py \
# --ignore=myokit/tests/test_protocol_floating_point.py \
# -k 'not case_pk_model'
# }
package() {
cd ${_base}-${pkgver}
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|