blob: 269d731324b9579a000ce5a17f344e79c0e3bdf6 (
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
53
54
55
56
57
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-inspice
_name=${pkgname#python-}
pkgver=1.7.0.7
pkgrel=1
epoch=
pkgdesc="Python interface to Ngspice and Xyce circuit simulators (forked from InSpice)"
arch=('any')
url="https://github.com/insim-ai/InSpice"
license=(AGPL-3.0-or-later)
groups=()
provides=(${pkgname})
conflicts=(${pkgname})
depends=(
python
python-beautifulsoup4
python-cffi
python-colorama
python-h5py
python-matplotlib
python-numpy
python-requests
python-regex
python-ply
python-pint
python-yaml
# AUR
python-diskcache
)
makedepends=(
git
python-build
python-installer
python-wheel
python-setuptools
)
optdepends=()
options=('!strip' '!debug')
source=("${_name}::git+${url}.git#tag=v$pkgver")
noextract=()
sha256sums=('9e952a8c7102341344e28ed2e63a5920775791c69f62c3c6457093627a17b0e7')
prepare() {
git -C "${srcdir}/${_name}" clean -dfx
}
build() {
cd "${srcdir}/${_name}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm0644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|