summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1397ad8d2cd2952faf7667950735ad8eb576b50 (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: taotieren <admin@taotieren.com>

pkgname=python-pyspice
_name=PySpice
pkgver=1.5
pkgrel=0
epoch=
pkgdesc="Simulate electronic circuit using Python and the Ngspice / Xyce simulators"
arch=('any')
url="https://pypi.org/project/pyspace"
license=(GPL-3.0-only)
groups=()
provides=(${_name})
conflicts=(${_name})
_py_deps=(
    cffi
    beautifulsoup4
    regex
    requests
    invoke
    numpy
    matplotlib
    ply
    pygit2
    pygithub
    yaml)
depends=(
    python
    "${_py_deps[@]/#/python-}")
makedepends=(python-build
    python-installer
    python-wheel
    python-setuptools)
checkdepends=(python-pytest
    python-tox)
options=('!strip')
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
sha256sums=('d28448accad98959e0f5932af8736e90a1f3f9ff965121c6881d24cdfca23d22')

build() {
    cd "${srcdir}/${_name}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/${_name}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}