Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "smpmgr";
|
|
version = "0.13.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intercreate";
|
|
repo = "smpmgr";
|
|
tag = version;
|
|
hash = "sha256-0yb6PNrC6+u/iX/5xVvXq5gdLF7Hol8VOsmY22Ka8B8=";
|
|
};
|
|
|
|
build-system = with python3Packages; [
|
|
poetry-core
|
|
poetry-dynamic-versioning
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"typer"
|
|
"smpclient"
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
readchar
|
|
smpclient
|
|
typer
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
|
|
pythonImportsCheck = [ "smpmgr" ];
|
|
|
|
meta = {
|
|
description = "Simple Management Protocol (SMP) Manager for remotely managing MCU firmware";
|
|
homepage = "https://github.com/intercreate/smpmgr";
|
|
changelog = "https://github.com/intercreate/smpmgr/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ otavio ];
|
|
mainProgram = "smpmgr";
|
|
};
|
|
}
|