commit:     b50e9da53e3fbe32e3b294ffca648c712fd5c4b0
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Mon Jan 22 11:43:52 2024 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Mon Jan 22 11:43:52 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=b50e9da5

sci-electronics/mpremote: add 1.22.0

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 .../files/mpremote-1.22.0-requirements_txt.patch   | 12 +++++++++
 sci-electronics/mpremote/mpremote-1.22.0.ebuild    | 29 ++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git 
a/sci-electronics/mpremote/files/mpremote-1.22.0-requirements_txt.patch 
b/sci-electronics/mpremote/files/mpremote-1.22.0-requirements_txt.patch
new file mode 100644
index 000000000..4d06c25aa
--- /dev/null
+++ b/sci-electronics/mpremote/files/mpremote-1.22.0-requirements_txt.patch
@@ -0,0 +1,12 @@
+--- a/pyproject.toml   2020-02-01 19:00:00.000000000 -0500
++++ b/pyproject.toml   2024-01-22 03:59:19.414593373 -0500
+@@ -33,9 +33,6 @@
+ [project.scripts]
+ mpremote = "mpremote.main:main"
+
+-[tool.hatch.metadata.hooks.requirements_txt]
+-files = ["requirements.txt"]
+-
+ # This will be PEP-440 normalised into either:
+ # mpremote-X.Y.Z (on vX.Y.Z release tag)
+ # mpremote-X.Y.Zrc0 (on vX.Y.Z-preview tag, i.e. first commit in the cycle)

diff --git a/sci-electronics/mpremote/mpremote-1.22.0.ebuild 
b/sci-electronics/mpremote/mpremote-1.22.0.ebuild
new file mode 100644
index 000000000..741478265
--- /dev/null
+++ b/sci-electronics/mpremote/mpremote-1.22.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=hatchling
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="MicroPython remote control"
+HOMEPAGE="https://github.com/micropython/micropython/tree/master/tools/mpremote";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-python/pyserial[${PYTHON_USEDEP}]
+       dev-python/importlib-metadata[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+       "${FILESDIR}/${P}-requirements_txt.patch"
+)
+
+# The package might not have a test suite:
+# https://github.com/orgs/micropython/discussions/11308
+#distutils_enable_tests pytest

Reply via email to