1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pycryptodome, 7 py-datastruct, 8 pyserial, 9}: 10 11buildPythonPackage rec { 12 pname = "bk7231tools"; 13 version = "2.1.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "tuya-cloudcutter"; 18 repo = "bk7231tools"; 19 tag = "v${version}"; 20 hash = "sha256-+gjcXSkPb6BI3rSZekGWgQcFtAN23tyvZLEKQvtUlFU="; 21 }; 22 23 pythonRelaxDeps = [ 24 "pycryptodome" 25 "py-datastruct" 26 "pyserial" 27 ]; 28 29 build-system = [ poetry-core ]; 30 31 dependencies = [ 32 pycryptodome 33 py-datastruct 34 pyserial 35 ]; 36 37 pythonImportsCheck = [ "bk7231tools" ]; 38 39 meta = { 40 description = "Tools to interact with and analyze artifacts for BK7231 MCUs"; 41 homepage = "https://github.com/tuya-cloudcutter/bk7231tools"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ mevatron ]; 44 mainProgram = "bk7231tools"; 45 }; 46}