Date: Friday, October 21, 2022 @ 21:04:29
Author: dvzrv
Revision: 1333303
archrelease: copy trunk to community-any
Added:
python-spsdk/repos/community-any/PKGBUILD
(from rev 1333302, python-spsdk/trunk/PKGBUILD)
python-spsdk/repos/community-any/python-spsdk-1.6.0-remove_pypemicro.patch
(from rev 1333302,
python-spsdk/trunk/python-spsdk-1.6.0-remove_pypemicro.patch)
Deleted:
python-spsdk/repos/community-any/PKGBUILD
python-spsdk/repos/community-any/python-spsdk-1.6.0-remove_pypemicro.patch
python-spsdk/repos/community-any/python-spsdk-1.7.0-cryptography.patch
-------------------------------------------+
PKGBUILD | 189 +++++++++++++---------------
python-spsdk-1.6.0-remove_pypemicro.patch | 56 ++++----
python-spsdk-1.7.0-cryptography.patch | 11 -
3 files changed, 119 insertions(+), 137 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-21 21:04:16 UTC (rev 1333302)
+++ PKGBUILD 2022-10-21 21:04:29 UTC (rev 1333303)
@@ -1,98 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=spsdk
-pkgname=python-spsdk
-pkgver=1.7.1
-pkgrel=1
-pkgdesc="NXP Secure Provisioning SDK"
-arch=(any)
-url="https://github.com/NXPmicro/spsdk"
-license=(BSD)
-depends=(
- python-asn1crypto
- python-astunparse
- python-bincopy
- python-bitstring
- python-click
- python-click-command-tree
- python-click-option-group
- python-cmsis-pack-manager
- python-colorama
- python-commentjson
- python-crcmod
- python-cryptography
- python-deepmerge
- python-fastjsonschema
- python-hexdump
- python-jinja
- python-libusbsio
- python-oscrypto
- python-pycryptodome
- python-pylink-square
- python-pyocd
- python-pyserial
- python-ruamel-yaml
- python-sly
- python-typing-extensions
-)
-makedepends=(python-build python-installer python-setuptools python-wheel)
-checkdepends=(
- python-jsonschema
- python-pytest
- python-voluptuous
- python-pyyaml
-)
-# pypi sdist tarball has no tests: https://github.com/NXPmicro/spsdk/issues/37
-#
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-source=(
-
$_name-$pkgver.tar.gz::https://github.com/NXPmicro/$_name/archive/refs/tags/$pkgver.tar.gz
- $pkgname-1.6.0-remove_pypemicro.patch
- $pkgname-1.7.0-cryptography.patch
-)
-sha512sums=('2ee9be8b0ada9ba9525361aa6b0461a1468afabb7664c5b08b7bdbb559d7fc7f5b612a40bc46e1c2f36396795b9e62309f6e474cefff6bfe359e3805b8a39903'
-
'7bfb3739053284ba0b4084c1f84e37e307233fa7b52adf403fa5c574393d71e08ea02bdc927106b036d1055f6efd6c326b534d697c1d5f6c097def53dbafc560'
-
'2c6d56add47e17342f19b281b206e1b658c651e46d17a64aef007774f093a40e25f81c604e0d9b3a24079f2179ea1f113736cdf44b286a0a01a4ad6b6cab00ce')
-b2sums=('6b691a8d06d19f2581213484588a335a5e4cccd1310a277780b177a6c2e601a3c5312fe2eb0394c259a4f73669f18170dd18fdb612a02aed340523fbc271617f'
-
'2c68116494b5e7ff51e59ec79dd3e354e2a8035ab35e29b27a097d7baa47e48c71a2cdac651920c76cd29097c5e8710e74106e41a4b3d5f543e259ef7404beac'
-
'a1005b5408d67c8a5105068107c52f5a84f5c36e19a84d04e8456e67d0c4658961f11dedf4e5a5a00b6e91beddac49ebfea9d9f04c527b6b58bf47067224f2bd')
-
-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
- # remove dependency on python-pypemicro as it vendors prebuilt shared
libraries
- # https://github.com/NXPmicro/spsdk/issues/30
- # https://github.com/NXPmicro/pypemicro/issues/10
- sed '/pypemicro/d' -i requirements.txt
- patch -Np1 -i ../$pkgname-1.6.0-remove_pypemicro.patch
- # remove dependency on python-pyocd-pemicro as it vendors prebuilt shared
libraries via python-pypemicro
- # https://github.com/pyocd/pyOCD/issues/1319
- # https://github.com/NXPmicro/spsdk/issues/30
- # https://github.com/NXPmicro/pypemicro/issues/10
- sed '/pyocd-pemicro/d' -i requirements.txt
-
- # support python-cryptography >= 37
- # https://github.com/NXPmicro/spsdk/issues/43
- patch -Np1 -i ../$pkgname-1.7.0-cryptography.patch
-}
-
-build() {
- cd $_name-$pkgver
- python -m build --wheel --no-isolation
-}
-
-check() {
- local _deselected=()
-
- cd $_name-$pkgver
- # ignore failing tests due to incompatible bincopy:
https://github.com/NXPmicro/spsdk/issues/38
- pytest -v --ignore tests/elftosb/test_elftosb_mbi.py -k "not
test_parse_image_file_invalid and not test_load_binary_image"
-}
-
-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"
-}
Copied: python-spsdk/repos/community-any/PKGBUILD (from rev 1333302,
python-spsdk/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-10-21 21:04:29 UTC (rev 1333303)
@@ -0,0 +1,91 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=spsdk
+pkgname=python-spsdk
+pkgver=1.8.0
+pkgrel=1
+pkgdesc="NXP Secure Provisioning SDK"
+arch=(any)
+url="https://github.com/NXPmicro/spsdk"
+license=(BSD)
+depends=(
+ python-asn1crypto
+ python-astunparse
+ python-bincopy
+ python-bitstring
+ python-click
+ python-click-command-tree
+ python-click-option-group
+ python-cmsis-pack-manager
+ python-colorama
+ python-commentjson
+ python-crcmod
+ python-cryptography
+ python-deepmerge
+ python-fastjsonschema
+ python-hexdump
+ python-jinja
+ python-libusbsio
+ python-oscrypto
+ python-pycryptodome
+ python-pylink-square
+ python-pyocd
+ python-pyserial
+ python-ruamel-yaml
+ python-sly
+ python-typing-extensions
+)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(
+ python-jsonschema
+ python-pytest
+ python-voluptuous
+ python-pyyaml
+)
+# pypi sdist tarball has no tests: https://github.com/NXPmicro/spsdk/issues/37
+#
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+source=(
+
$_name-$pkgver.tar.gz::https://github.com/NXPmicro/$_name/archive/refs/tags/$pkgver.tar.gz
+ $pkgname-1.6.0-remove_pypemicro.patch
+)
+sha512sums=('ab6c404dae2994eec1a2016d7e187fc74fe3b6b50e8f431ca8003ccb5dbcefbdd55ecfa683062b94a85dee675da46483cc58e2c42b50afad83ebd60e22306108'
+
'7bfb3739053284ba0b4084c1f84e37e307233fa7b52adf403fa5c574393d71e08ea02bdc927106b036d1055f6efd6c326b534d697c1d5f6c097def53dbafc560')
+b2sums=('0f8556e2b9f5e6401fcfb563017184eb8112f4f7ce5cb5c98831f5ba156189618bfe0bec74397ed0e77706bd1aea8342f64b8e8913918773e17170842a34237d'
+
'2c68116494b5e7ff51e59ec79dd3e354e2a8035ab35e29b27a097d7baa47e48c71a2cdac651920c76cd29097c5e8710e74106e41a4b3d5f543e259ef7404beac')
+
+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
+ # remove dependency on python-pypemicro as it vendors prebuilt shared
libraries
+ # https://github.com/NXPmicro/spsdk/issues/30
+ # https://github.com/NXPmicro/pypemicro/issues/10
+ sed '/pypemicro/d' -i requirements.txt
+ patch -Np1 -i ../$pkgname-1.6.0-remove_pypemicro.patch
+ # remove dependency on python-pyocd-pemicro as it vendors prebuilt shared
libraries via python-pypemicro
+ # https://github.com/pyocd/pyOCD/issues/1319
+ # https://github.com/NXPmicro/spsdk/issues/30
+ # https://github.com/NXPmicro/pypemicro/issues/10
+ sed '/pyocd-pemicro/d' -i requirements.txt
+}
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ local _deselected=()
+
+ cd $_name-$pkgver
+ # ignore failing tests due to incompatible bincopy:
https://github.com/NXPmicro/spsdk/issues/38
+ pytest -v --ignore tests/elftosb/test_elftosb_mbi.py -k "not
test_parse_image_file_invalid and not test_load_binary_image"
+}
+
+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"
+}
Deleted: python-spsdk-1.6.0-remove_pypemicro.patch
===================================================================
--- python-spsdk-1.6.0-remove_pypemicro.patch 2022-10-21 21:04:16 UTC (rev
1333302)
+++ python-spsdk-1.6.0-remove_pypemicro.patch 2022-10-21 21:04:29 UTC (rev
1333303)
@@ -1,28 +0,0 @@
-diff -ruN a/spsdk/debuggers/__init__.py b/spsdk/debuggers/__init__.py
---- a/spsdk/debuggers/__init__.py 2022-02-04 14:27:29.000000000 +0100
-+++ b/spsdk/debuggers/__init__.py 2022-02-14 00:01:52.710415054 +0100
-@@ -9,5 +9,4 @@
-
- from .debug_probe import DebugProbe
- from .debug_probe_jlink import DebugProbePyLink
--from .debug_probe_pemicro import DebugProbePemicro
- from .debug_probe_pyocd import DebugProbePyOCD
-diff -ruN a/spsdk/debuggers/utils.py b/spsdk/debuggers/utils.py
---- a/spsdk/debuggers/utils.py 2022-02-04 14:27:29.000000000 +0100
-+++ b/spsdk/debuggers/utils.py 2022-02-14 00:05:11.017196467 +0100
-@@ -15,7 +15,6 @@
- from spsdk import SPSDKError
- from spsdk.debuggers.debug_probe import DebugProbe, SPSDKDebugProbeError,
SPSDKProbeNotFoundError
- from spsdk.debuggers.debug_probe_jlink import DebugProbePyLink
--from spsdk.debuggers.debug_probe_pemicro import DebugProbePemicro
-
- # Import all supported debug probe classes
- from spsdk.debuggers.debug_probe_pyocd import DebugProbePyOCD
-@@ -23,7 +22,6 @@
- PROBES = {
- "pyocd": DebugProbePyOCD,
- "jlink": DebugProbePyLink,
-- "pemicro": DebugProbePemicro,
- }
-
- logger = logging.getLogger(__name__)
Copied:
python-spsdk/repos/community-any/python-spsdk-1.6.0-remove_pypemicro.patch
(from rev 1333302, python-spsdk/trunk/python-spsdk-1.6.0-remove_pypemicro.patch)
===================================================================
--- python-spsdk-1.6.0-remove_pypemicro.patch (rev 0)
+++ python-spsdk-1.6.0-remove_pypemicro.patch 2022-10-21 21:04:29 UTC (rev
1333303)
@@ -0,0 +1,28 @@
+diff -ruN a/spsdk/debuggers/__init__.py b/spsdk/debuggers/__init__.py
+--- a/spsdk/debuggers/__init__.py 2022-02-04 14:27:29.000000000 +0100
++++ b/spsdk/debuggers/__init__.py 2022-02-14 00:01:52.710415054 +0100
+@@ -9,5 +9,4 @@
+
+ from .debug_probe import DebugProbe
+ from .debug_probe_jlink import DebugProbePyLink
+-from .debug_probe_pemicro import DebugProbePemicro
+ from .debug_probe_pyocd import DebugProbePyOCD
+diff -ruN a/spsdk/debuggers/utils.py b/spsdk/debuggers/utils.py
+--- a/spsdk/debuggers/utils.py 2022-02-04 14:27:29.000000000 +0100
++++ b/spsdk/debuggers/utils.py 2022-02-14 00:05:11.017196467 +0100
+@@ -15,7 +15,6 @@
+ from spsdk import SPSDKError
+ from spsdk.debuggers.debug_probe import DebugProbe, SPSDKDebugProbeError,
SPSDKProbeNotFoundError
+ from spsdk.debuggers.debug_probe_jlink import DebugProbePyLink
+-from spsdk.debuggers.debug_probe_pemicro import DebugProbePemicro
+
+ # Import all supported debug probe classes
+ from spsdk.debuggers.debug_probe_pyocd import DebugProbePyOCD
+@@ -23,7 +22,6 @@
+ PROBES = {
+ "pyocd": DebugProbePyOCD,
+ "jlink": DebugProbePyLink,
+- "pemicro": DebugProbePemicro,
+ }
+
+ logger = logging.getLogger(__name__)
Deleted: python-spsdk-1.7.0-cryptography.patch
===================================================================
--- python-spsdk-1.7.0-cryptography.patch 2022-10-21 21:04:16 UTC (rev
1333302)
+++ python-spsdk-1.7.0-cryptography.patch 2022-10-21 21:04:29 UTC (rev
1333303)
@@ -1,11 +0,0 @@
-diff -ruN a/spsdk/crypto/__init__.py b/spsdk/crypto/__init__.py
---- a/spsdk/crypto/__init__.py 2022-07-29 15:19:47.000000000 +0200
-+++ b/spsdk/crypto/__init__.py 2022-07-31 20:31:00.457065560 +0200
-@@ -48,7 +48,6 @@
- # Explicit import due to MYPY issue
- from cryptography.hazmat.backends import *
- from cryptography.hazmat.backends import default_backend
--from cryptography.hazmat.backends.interfaces import *
- from cryptography.hazmat.backends.openssl.rsa import *
-
- # Explicit import due to MYPY issue