blob: 97aa85a8d962d38642e6d128ea9bd2e44ac636cf (
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: taotieren <admin@taotieren.com>
pkgname=python-inspice
_name=${pkgname#python-}
pkgver=1.6.4.4
pkgrel=1
epoch=
pkgdesc="Python interface to Ngspice and Xyce circuit simulators (forked from InSpice)"
arch=('any')
url="https://pypi.org/project/${_name}"
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=(
python-build
python-installer
python-wheel
python-setuptools
)
optdepends=()
options=('!strip' '!debug')
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
sha256sums=('2201ef9b0a91e290cf46ad7be35999d2c82b75b46fd4f34a73c6dba559b1a01e')
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm0644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|