52 lines
922 B
Nix
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 ];
|
|
};
|
|
}
|