blob: 293c3f46ad6a1fe25f65be3283cd7d12af537a01 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: David Runge <dvzrv@archlinux.org>
_name=spsdk
pkgname=python-spsdk
pkgver=3.7.1
pkgrel=1
pkgdesc="Open Source Secure Provisioning SDK for NXP MCU/MPU"
arch=(any)
url="https://github.com/nxp-mcuxpresso/spsdk"
license=(BSD-3-Clause)
depends=(
ipython
python
python-asn1crypto
python-astunparse
python-bitstring
python-can
python-click
python-click-command-tree
python-colorama
python-crcmod
python-cryptography
python-fastjsonschema
python-filelock
python-hexdump
python-importlib-metadata
python-ipywidgets
python-setuptools-scm
python-packaging
python-platformdirs
python-prettytable
python-pyasn1
python-pyserial
python-requests
python-ruamel-yaml
python-typing_extensions
python-yaml
# AUR
python-bincopy
python-click-option-group
python-deepmerge
python-ftd2xx
python-pyftdi
python-pylibftdi
python-gmssl
python-libuuu
python-sly
python-spsdk-pqc
python-libusbsio
# python-spsdk-mcu-link
# python-spsdk-pyocd
python-x690
)
makedepends=(
python-tomli
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(
python-pytest
python-pytest-xdist
python-voluptuous
)
optdepends=()
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha512sums=('e8da6115b39a4b05b6221d0cb78dfad18ec2d6d1bbd260c4c1340e9b8e38f364b3aad701d1c8a5aacb0fca27c5eac1d102ea62ac88cf0165af2b88004791a20a')
prepare() {
cd $_name-$pkgver
# remove all version pinning and overly explicit version bounds
# https://github.com/NXPmicro/spsdk/issues/35
sed -e 's|>=.*||g;s|==.*||g;s|~=.*||g;s|<.*||g' -i requirements{,-develop}.txt
sed -E 's/(requires = \[.*"setuptools_scm)[^"]*(".*"setuptools)[^"]*(".*"wheel")/\1\2\3/' -i pyproject.toml
}
build() {
cd $_name-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
|