blob: c42451887d83878cf271a2762c9499d2dc373aa0 (
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
|
# Maintainer: Victor <v1c70rp@gmail.com>
# Contributor: Techcable <Techcable at techcable dot net>
pkgname=mathicsscript
pkgver=7.0.0
pkgrel=1
pkgdesc="A more advanced command-line interface to Mathics."
arch=("any")
url="https://mathics.org/"
license=('GPL3')
depends=("mathics>=7.0.0"
"mathics-scanner>=1.3.0"
"python-click"
"python-colorama"
"python-columnize"
"python-networkx"
"python-prompt_toolkit>=3.0.18"
"python-pygments>=2.9.0"
"mathics-pygments>=1.0.2"
"python-term-background>=1.0.1")
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"
)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
source=("$pkgname-$pkgver.tar.gz::https://github.com/Mathics3/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('f4dc0974fa04782fff09a82c89b3c5554c47c38eb85d4b8c19460e20357af796')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
curl -O "https://raw.githubusercontent.com/Mathics3/$pkgname/$pkgver/requirements-dev.txt"
curl -O "https://raw.githubusercontent.com/Mathics3/$pkgname/$pkgver/requirements-full.txt"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py build
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
# For some reason, setuptools seems to like including these
# test files....
rm -r "${pkgdir}"/usr/lib/python*/site-packages/test
}
|