smpmgr: init at 0.11.0, python312Packages.smpclient: init at 4.4.2, python312Packages.smp: init at 3.3.1 (#389115)

authored by Thiago Kenji Okada and committed by GitHub aed881aa e5d04937

+170
+56
pkgs/by-name/sm/smpmgr/package.nix
···
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + python3Packages, 5 + versionCheckHook, 6 + }: 7 + 8 + python3Packages.buildPythonApplication rec { 9 + pname = "smpmgr"; 10 + version = "0.12.0"; 11 + pyproject = true; 12 + 13 + src = fetchFromGitHub { 14 + owner = "intercreate"; 15 + repo = "smpmgr"; 16 + tag = version; 17 + hash = "sha256-HNL9e3D/uZwJI0d4escbhe51zKH7hBFAnCGZZuZdla4="; 18 + }; 19 + 20 + build-system = with python3Packages; [ 21 + poetry-core 22 + poetry-dynamic-versioning 23 + setuptools 24 + ]; 25 + 26 + dependencies = with python3Packages; [ 27 + readchar 28 + smpclient 29 + typer 30 + ]; 31 + 32 + nativeCheckInputs = with python3Packages; [ 33 + pytestCheckHook 34 + versionCheckHook 35 + ]; 36 + 37 + pythonRelaxDeps = [ 38 + "typer" 39 + "smpclient" 40 + ]; 41 + 42 + versionCheckProgramArg = [ "--version" ]; 43 + 44 + pythonImportsCheck = [ 45 + "smpmgr" 46 + ]; 47 + 48 + meta = { 49 + description = "Simple Management Protocol (SMP) Manager for remotely managing MCU firmware"; 50 + homepage = "https://github.com/intercreate/smpmgr"; 51 + changelog = "https://github.com/intercreate/smpmgr/releases/tag/${version}"; 52 + license = lib.licenses.asl20; 53 + maintainers = with lib.maintainers; [ otavio ]; 54 + mainProgram = "smpmgr"; 55 + }; 56 + }
+51
pkgs/development/python-modules/smp/default.nix
···
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + poetry-core, 6 + cbor2, 7 + crcmod, 8 + eval-type-backport, 9 + pydantic, 10 + pytestCheckHook, 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "smp"; 15 + version = "3.3.1"; 16 + pyproject = true; 17 + 18 + src = fetchFromGitHub { 19 + owner = "JPHutchins"; 20 + repo = "smp"; 21 + tag = version; 22 + hash = "sha256-TjucQm07nbfuFrVOHGOVA/f1rQRQfU8ws8VVC+U/kp8="; 23 + }; 24 + 25 + build-system = [ 26 + poetry-core 27 + ]; 28 + 29 + dependencies = [ 30 + cbor2 31 + crcmod 32 + eval-type-backport 33 + pydantic 34 + ]; 35 + 36 + nativeCheckInputs = [ 37 + pytestCheckHook 38 + ]; 39 + 40 + pythonImportsCheck = [ 41 + "smp" 42 + ]; 43 + 44 + meta = { 45 + description = "Simple Management Protocol (SMP) for remotely managing MCU firmware"; 46 + homepage = "https://github.com/JPHutchins/smp"; 47 + changelog = "https://github.com/JPHutchins/smp/releases/tag/${version}"; 48 + license = lib.licenses.asl20; 49 + maintainers = with lib.maintainers; [ otavio ]; 50 + }; 51 + }
+59
pkgs/development/python-modules/smpclient/default.nix
···
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + poetry-core, 6 + async-timeout, 7 + bleak, 8 + intelhex, 9 + pyserial, 10 + smp, 11 + pytest-asyncio, 12 + pytestCheckHook, 13 + }: 14 + 15 + buildPythonPackage rec { 16 + pname = "smpclient"; 17 + version = "4.4.2"; 18 + pyproject = true; 19 + 20 + src = fetchFromGitHub { 21 + owner = "intercreate"; 22 + repo = "smpclient"; 23 + tag = version; 24 + hash = "sha256-qbf0xGK1RYaeEIAsbkZ2cWj/MQrmVwm2IKmOkihxBDE="; 25 + }; 26 + 27 + build-system = [ 28 + poetry-core 29 + ]; 30 + 31 + dependencies = [ 32 + async-timeout 33 + bleak 34 + intelhex 35 + pyserial 36 + smp 37 + ]; 38 + 39 + nativeCheckInputs = [ 40 + pytest-asyncio 41 + pytestCheckHook 42 + ]; 43 + 44 + pythonRelaxDeps = [ 45 + "smp" 46 + ]; 47 + 48 + pythonImportsCheck = [ 49 + "smpclient" 50 + ]; 51 + 52 + meta = { 53 + description = "Simple Management Protocol (SMP) Client for remotely managing MCU firmware"; 54 + homepage = "https://github.com/intercreate/smpclient"; 55 + changelog = "https://github.com/intercreate/smpclient/releases/tag/${version}"; 56 + license = lib.licenses.asl20; 57 + maintainers = with lib.maintainers; [ otavio ]; 58 + }; 59 + }
+4
pkgs/top-level/python-packages.nix
··· 15915 15916 smolagents = callPackage ../development/python-modules/smolagents { }; 15917 15918 smpp-pdu = callPackage ../development/python-modules/smpp-pdu { }; 15919 15920 smpplib = callPackage ../development/python-modules/smpplib { };
··· 15915 15916 smolagents = callPackage ../development/python-modules/smolagents { }; 15917 15918 + smp = callPackage ../development/python-modules/smp { }; 15919 + 15920 + smpclient = callPackage ../development/python-modules/smpclient { }; 15921 + 15922 smpp-pdu = callPackage ../development/python-modules/smpp-pdu { }; 15923 15924 smpplib = callPackage ../development/python-modules/smpplib { };