Otavio Salvador 81c4342563 python312Packages.smp: init at 3.3.1
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2025-04-01 20:36:01 -03:00

52 lines
922 B
Nix

{
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 ];
};
}