Files
nixpkgs/pkgs/development/python-modules/bk7231tools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
905 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
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";
};
}