commit:     3c5afcaeaea92a3d98f77c324005ce4c95546d0f
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 30 12:48:21 2024 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Tue Jan 30 15:14:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c5afcae

dev-python/mcbootflash: new package, add 8.0.0

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 dev-python/mcbootflash/Manifest                 |  1 +
 dev-python/mcbootflash/mcbootflash-8.0.0.ebuild | 30 +++++++++++++++++++++++++
 dev-python/mcbootflash/metadata.xml             | 17 ++++++++++++++
 3 files changed, 48 insertions(+)

diff --git a/dev-python/mcbootflash/Manifest b/dev-python/mcbootflash/Manifest
new file mode 100644
index 000000000000..a70bd3705a81
--- /dev/null
+++ b/dev-python/mcbootflash/Manifest
@@ -0,0 +1 @@
+DIST mcbootflash-8.0.0.tar.gz 24386 BLAKE2B 
f9151017131b90f01da923084f2b42103fe54ea4c6fe6a77e7ca4f52619b1527829177dc74db6166585ccb003aa3e07c702469ff1d07f5d616870f232a0e5c3c
 SHA512 
d1c3a437ca2878a386df44ecf4df2d5aebd26cd859509e003ebdc7203eb13b9bbdc4accdc0607e170646dd7fc22526a746f77770105dd637becb09dde706527f

diff --git a/dev-python/mcbootflash/mcbootflash-8.0.0.ebuild 
b/dev-python/mcbootflash/mcbootflash-8.0.0.ebuild
new file mode 100644
index 000000000000..646189378d42
--- /dev/null
+++ b/dev-python/mcbootflash/mcbootflash-8.0.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Flash firmware to devices running Microchip's 16-bit bootloader"
+HOMEPAGE="
+       https://pypi.org/project/mcbootflash/
+       https://github.com/bessman/mcbootflash/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# Tests require the presence of dedicated hardware
+RESTRICT="test"
+
+RDEPEND="
+       >=dev-python/bincopy-20.0.0[${PYTHON_USEDEP}]
+       dev-python/pyserial[${PYTHON_USEDEP}]
+"
+BDEPEND="test? ( dev-python/pytest-reserial[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests pytest

diff --git a/dev-python/mcbootflash/metadata.xml 
b/dev-python/mcbootflash/metadata.xml
new file mode 100644
index 000000000000..4813ad901260
--- /dev/null
+++ b/dev-python/mcbootflash/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Marek Szuba</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Python</name>
+       </maintainer>
+       <stabilize-allarches/>
+       <upstream>
+               <remote-id type="pypi">mcbootflash</remote-id>
+               <remote-id type="github">bessman/mcbootflash</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to