aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShapovalov Alexey <aishapoval@mts.ru>2024-07-02 18:29:52 +0000
committerGleb Popov <arrowd@FreeBSD.org>2024-08-17 20:44:41 +0000
commite5c2e9d228f9f4936b3d52fe0cad866a4f36d2f7 (patch)
tree4f7fd67378d3645e7b383a25eea169a8c346a085
parent37457c216be0862266bdf50275f9a77f8201d824 (diff)
downloadports-e5c2e9d228f9f4936b3d52fe0cad866a4f36d2f7.tar.gz
ports-e5c2e9d228f9f4936b3d52fe0cad866a4f36d2f7.zip
comms/py-spsdk: provides connection and data exchange with devices
Sponsored by: Serenity Cybersecurity, LLC
-rw-r--r--comms/Makefile1
-rwxr-xr-xcomms/py-spsdk/Makefile82
-rwxr-xr-xcomms/py-spsdk/distinfo3
-rwxr-xr-xcomms/py-spsdk/pkg-descr7
4 files changed, 93 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index 497011eadd46..506f6ae1b662 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -143,6 +143,7 @@
SUBDIR += py-pyocd-pemicro
SUBDIR += py-pyserial
SUBDIR += py-pyserial-asyncio
+ SUBDIR += py-spsdk
SUBDIR += py-streamdeck
SUBDIR += py-xmodem
SUBDIR += pyla
diff --git a/comms/py-spsdk/Makefile b/comms/py-spsdk/Makefile
new file mode 100755
index 000000000000..b6270f22a1f2
--- /dev/null
+++ b/comms/py-spsdk/Makefile
@@ -0,0 +1,82 @@
+PORTNAME= spsdk
+DISTVERSION= 2.2.1
+CATEGORIES= comms python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= awoonyaa@gmail.com
+COMMENT= Connection and data exchange with devices for secure configuration and programming
+WWW= https://pypi.org/project/spsdk/
+
+LICENSE= BSD3CLAUSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}asn1crypto>=1.2,<1.6:devel/py-asn1crypto@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}bincopy>=17.14.5,<17.15:converters/py-bincopy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}bitstring>=3.1:devel/py-bitstring@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click>=7.1,<8.2:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click-plugins>0:devel/py-click-plugins@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click-option-group>=0.3.0,<0.6:devel/py-click-option-group@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click-command-tree<1.2:devel/py-click-command-tree@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}colorama>=0.3.9:devel/py-colorama@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}commentjson>=0.9,<0.10:devel/py-commentjson@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}crcmod<1.8:devel/py-crcmod@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}deepmerge<1.2:devel/py-deepmerge@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jsonschema>=2.6:devel/py-jsonschema@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}fastjsonschema>=2.15.1:devel/py-fastjsonschema@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hexdump<3.4:textproc/py-hexdump@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}libusbsio>=2.1.11,<2.2:comms/py-libusbsio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}oscrypto<1.4:security/py-oscrypto@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pycryptodome>=3.9.3:security/py-pycryptodome@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pylink-square>=1.0,<=1.2:comms/py-pylink-square@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyocd>=0.35.1,<=0.36:comms/py-pyocd@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pypemicro>=0.1.11,<0.2:devel/py-pypemicro@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyocd-pemicro>=1.1.5,<1.2:comms/py-pyocd-pemicro@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyserial>=3.1,<3.6:comms/py-pyserial@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.17:devel/py-ruamel.yaml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sly>0:lang/py-sly@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions<=5.0:devel/py-typing-extensions@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mypy>=1.5.1:devel/py-mypy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}openssl>=16.2.0:security/py-openssl@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tox>=0:devel/py-tox@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}black>0:devel/py-black@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=1.2,<1.6:devel/py-asn1crypto@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}bincopy>=17.14.5,<17.15:converters/py-bincopy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}bitstring>=3.1:devel/py-bitstring@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click>=7.1,<8.2:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click-plugins>0:devel/py-click-plugins@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click-option-group>=0.3.0,<0.6:devel/py-click-option-group@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click-command-tree<1.2:devel/py-click-command-tree@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}colorama>=0.3.9:devel/py-colorama@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}commentjson>=0.9,<0.10:devel/py-commentjson@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}crcmod<1.8:devel/py-crcmod@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}deepmerge<1.2:devel/py-deepmerge@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jsonschema>=2.6:devel/py-jsonschema@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}fastjsonschema>=2.15.1:devel/py-fastjsonschema@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hexdump<3.4:textproc/py-hexdump@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}libusbsio>=2.1.11,<2.2:comms/py-libusbsio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}oscrypto<1.4:security/py-oscrypto@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pycryptodome>=3.9.3:security/py-pycryptodome@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pylink-square>=1.0,<=1.2:comms/py-pylink-square@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyocd>=0.35.1,<=0.36:comms/py-pyocd@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pypemicro>=0.1.11,<0.2:devel/py-pypemicro@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyocd-pemicro>=1.1.5,<1.2:comms/py-pyocd-pemicro@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyserial>=3.1,<3.6:comms/py-pyserial@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.17:devel/py-ruamel.yaml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sly>0:lang/py-sly@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions<=5.0:devel/py-typing-extensions@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mypy>=1.5.1:devel/py-mypy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}openssl>=16.2.0:security/py-openssl@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tox>=0:devel/py-tox@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/comms/py-spsdk/distinfo b/comms/py-spsdk/distinfo
new file mode 100755
index 000000000000..f59d471118b6
--- /dev/null
+++ b/comms/py-spsdk/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1723556068
+SHA256 (spsdk-2.2.1.tar.gz) = 3c2a69e68842192a5a0f407a3433f018350f7e983772ccd56acf91b4e6e67687
+SIZE (spsdk-2.2.1.tar.gz) = 1169583
diff --git a/comms/py-spsdk/pkg-descr b/comms/py-spsdk/pkg-descr
new file mode 100755
index 000000000000..22f35def6d5f
--- /dev/null
+++ b/comms/py-spsdk/pkg-descr
@@ -0,0 +1,7 @@
+Secure Provisioning SDK is a unified, reliable, and easy to use Python SDK
+library working across the NXP MCU portfolio providing a strong foundation from
+quick customer prototyping up to production deployment.
+
+The library allows the user to connect and communicate with the device,
+configure the device, prepare, download, and upload data including security
+operations.