mpremote: init at 1.20.0

This commit is contained in:
Sophie Tauchert 2023-08-17 11:28:53 +02:00
parent caac0eb6bd
commit 00f2f4b727
No known key found for this signature in database
GPG Key ID: 52701DE5F5F51125
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, buildPythonApplication
, fetchFromGitHub
, hatchling
, hatch-requirements-txt
, hatch-vcs
, pyserial
, importlib-metadata
}:
buildPythonApplication rec {
pname = "mpremote";
version = "1.20.0";
src = fetchFromGitHub {
owner = "micropython";
repo = "micropython";
rev = "v${version}";
hash = "sha256-udIyNcRjwwoWju0Qob0CFtMibbVKwc7j2ji83BC1rX0=";
};
sourceRoot = "source/tools/mpremote";
format = "pyproject";
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
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 ];
};
}

View File

@ -1848,6 +1848,8 @@ with pkgs;
monica = callPackage ../servers/web-apps/monica { };
mpremote = python3Packages.callPackage ../tools/misc/mpremote { };
mprocs = callPackage ../tools/misc/mprocs { };
mpy-utils = python3Packages.callPackage ../tools/misc/mpy-utils { };