forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
54 lines (46 loc) · 1.14 KB
/
Copy pathpackage.nix
File metadata and controls
54 lines (46 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
lib,
fetchFromGitHub,
python3Packages,
versionCheckHook,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "smpmgr";
version = "0.18.0";
pyproject = true;
src = fetchFromGitHub {
owner = "intercreate";
repo = "smpmgr";
tag = finalAttrs.version;
hash = "sha256-wH9WdZXN1sR+uEOo/LupaIqYVzuHHyOX1EimD7MVNFw=";
};
build-system = with python3Packages; [
poetry-core
poetry-dynamic-versioning
];
pythonRelaxDeps = [
"typer"
"smpclient"
];
dependencies =
with python3Packages;
[
readchar
smpclient
typer
]
++ smpclient.optional-dependencies.all;
nativeCheckInputs = with python3Packages; [
pytestCheckHook
versionCheckHook
];
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/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ otavio ];
mainProgram = "smpmgr";
};
})