at master 1.2 kB view raw
1{ 2 lib, 3 async-timeout, 4 bleak, 5 buildPythonPackage, 6 fetchFromGitHub, 7 intelhex, 8 poetry-core, 9 poetry-dynamic-versioning, 10 pyserial, 11 pytest-asyncio, 12 pytestCheckHook, 13 smp, 14}: 15 16buildPythonPackage rec { 17 pname = "smpclient"; 18 version = "5.1.0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "intercreate"; 23 repo = "smpclient"; 24 tag = version; 25 hash = "sha256-/prS2w14yTT2t/CKDAVimh6lyXx4wRT3wQ1d18dhpSo="; 26 }; 27 28 pythonRelaxDeps = [ 29 "bleak" 30 "smp" 31 ]; 32 33 build-system = [ 34 poetry-core 35 poetry-dynamic-versioning 36 ]; 37 38 dependencies = [ 39 async-timeout 40 bleak 41 intelhex 42 pyserial 43 smp 44 ]; 45 46 nativeCheckInputs = [ 47 pytest-asyncio 48 pytestCheckHook 49 ]; 50 51 patches = [ ./bleak-compat.patch ]; 52 53 pythonImportsCheck = [ "smpclient" ]; 54 55 meta = { 56 description = "Simple Management Protocol (SMP) Client for remotely managing MCU firmware"; 57 homepage = "https://github.com/intercreate/smpclient"; 58 changelog = "https://github.com/intercreate/smpclient/releases/tag/${src.tag}"; 59 license = lib.licenses.asl20; 60 maintainers = with lib.maintainers; [ otavio ]; 61 }; 62}