blob: 6b6c8e215146bae209582111d2f33ff5183f85ce (
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
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Victor <v1c70rp@gmail.com>
# Contributor: Techcable <Techcable at techcable dot net>
pkgname=mathics3-script
_pkgname=mathicsscript
pkgver=10.0.0
pkgrel=2
pkgdesc="A more advanced command-line interface to Mathics."
arch=("any")
url="https://mathics.org/"
license=('GPL3')
depends=("mathics3>=10.0.0"
"mathics3-scanner>=10.0.0"
"python-click>=8.0.0"
"python-colorama"
"python-columnize"
"python-networkx"
"python-prompt_toolkit>=3.0.18"
"python-pygments>=2.9.0"
"mathics3-pygments>=10.0.0"
"python-term-background>=1.0.5")
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
checkdepends=('python-pytest')
optdepends=(
"python-yaml: Used for admin-tools/make-tables.sh to build JSON tables"
"python-pyqt6: For interactive display of graphs via matplotlib"
"python-cairosvg: For rendering plots and graphs as SVGs via matplotlib"
"python-cson: for xasy"
"python-matplotlib: For rendering SVG plots"
)
conflicts=('mathicsscript')
replaces=('mathicsscript')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Mathics3/$pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.gz")
sha256sums=('aeacd508ccf78a1c06007d815209f29c81422ac4861f24f502c6aa69f7622f4f')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}/${_pkgname}-${pkgver}"
# Remove test that require mathics3-script installed before testing
rm test/test_returncode.py
export PYTHONPATH="."
pytest test
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|