blob: 898b9862827dcbc5ebe65388c25ac8bfac2424e2 (
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
|
# Maintainer: Alexander Bocken <alexander@bocken.org>
_name=mesa
pkgname=python-${_name,,}
pkgver=3.0.3
pkgrel=1
pkgdesc="Agent-based modeling (ABM) in Python"
arch=('any')
url="https://github.com/projectmesa/mesa"
license=(Apache)
depends=('python>=3.10'
python-click
python-cookiecutter
python-matplotlib
python-mesa-viz-tornado
python-networkx
python-seaborn
python-numpy
python-pandas
python-solara
python-tqdm)
makedepends=('python-installer' 'python-wheel')
_whl="${_name//-/_}-$pkgver-py3-none-any.whl"
source=("https://files.pythonhosted.org/packages/py3/${_name::1}/$_name/$_whl")
sha256sums=(5607a2e9e8bb91f6f68e949d84411d1444ae002b353005cfb66023e3e8319050)
noextract=("$_whl")
package() {
_python_version="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
python -m installer --destdir="$pkgdir" "$_whl"
rm -rf "$pkgdir/usr/lib/python$_python_version/site-packages/tests"
}
|