2023-08-17 11:28:53 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hatchling
|
|
|
|
, hatch-requirements-txt
|
|
|
|
, hatch-vcs
|
|
|
|
, pyserial
|
|
|
|
, importlib-metadata
|
|
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mpremote";
|
2024-02-21 18:53:52 +01:00
|
|
|
version = "1.22.2";
|
2023-08-17 11:28:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "micropython";
|
|
|
|
repo = "micropython";
|
2024-01-23 20:57:37 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-21 18:53:52 +01:00
|
|
|
hash = "sha256-67CAR34VrMOzvNkukDeGRnUfoOLO66R37wsrRHjpp5E=";
|
2023-08-17 11:28:53 +02:00
|
|
|
};
|
2024-03-08 18:04:40 +01:00
|
|
|
sourceRoot = "${src.name}/tools/mpremote";
|
2023-08-17 11:28:53 +02:00
|
|
|
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 02:17:53 +01:00
|
|
|
mainProgram = "mpremote";
|
2023-08-17 11:28:53 +02:00
|
|
|
};
|
|
|
|
}
|