2023-08-17 09:28:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hatchling
|
|
|
|
, hatch-requirements-txt
|
|
|
|
, hatch-vcs
|
|
|
|
, pyserial
|
|
|
|
, importlib-metadata
|
|
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mpremote";
|
2024-01-23 19:57:37 +00:00
|
|
|
version = "1.22.1";
|
2023-08-17 09:28:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "micropython";
|
|
|
|
repo = "micropython";
|
2024-01-23 19:57:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-tGFXJW1RkUs/64Yatgg/1zZFPDQdu76uiMjNU8ebdvg=";
|
2023-08-17 09:28:53 +00:00
|
|
|
};
|
|
|
|
sourceRoot = "source/tools/mpremote";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
hatch-requirements-txt
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyserial
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mpremote" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An integrated set of utilities to remotely interact with and automate a MicroPython device over a serial connection";
|
|
|
|
homepage = "https://github.com/micropython/micropython/blob/master/tools/mpremote/README.md";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ _999eagle ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "mpremote";
|
2023-08-17 09:28:53 +00:00
|
|
|
};
|
|
|
|
}
|