python312Packages.smp: init at 3.3.1

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2025-03-11 20:03:07 -03:00
parent d01ca60497
commit 81c4342563
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
cbor2,
crcmod,
eval-type-backport,
pydantic,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "smp";
version = "3.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "JPHutchins";
repo = "smp";
tag = version;
hash = "sha256-TjucQm07nbfuFrVOHGOVA/f1rQRQfU8ws8VVC+U/kp8=";
};
build-system = [
poetry-core
];
dependencies = [
cbor2
crcmod
eval-type-backport
pydantic
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"smp"
];
meta = {
description = "Simple Management Protocol (SMP) for remotely managing MCU firmware";
homepage = "https://github.com/JPHutchins/smp";
changelog = "https://github.com/JPHutchins/smp/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ otavio ];
};
}

View File

@ -15852,6 +15852,8 @@ self: super: with self; {
smolagents = callPackage ../development/python-modules/smolagents { };
smp = callPackage ../development/python-modules/smp { };
smpp-pdu = callPackage ../development/python-modules/smpp-pdu { };
smpplib = callPackage ../development/python-modules/smpplib { };