47 lines
905 B
Nix
47 lines
905 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pycryptodome,
|
|
py-datastruct,
|
|
pyserial,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bk7231tools";
|
|
version = "2.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tuya-cloudcutter";
|
|
repo = "bk7231tools";
|
|
tag = "v${version}";
|
|
hash = "sha256-+gjcXSkPb6BI3rSZekGWgQcFtAN23tyvZLEKQvtUlFU=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"pycryptodome"
|
|
"py-datastruct"
|
|
"pyserial"
|
|
];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
pycryptodome
|
|
py-datastruct
|
|
pyserial
|
|
];
|
|
|
|
pythonImportsCheck = [ "bk7231tools" ];
|
|
|
|
meta = {
|
|
description = "Tools to interact with and analyze artifacts for BK7231 MCUs";
|
|
homepage = "https://github.com/tuya-cloudcutter/bk7231tools";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ mevatron ];
|
|
mainProgram = "bk7231tools";
|
|
};
|
|
}
|