summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-embedded/esptool/Manifest1
-rw-r--r--dev-embedded/esptool/esptool-2.0.ebuild29
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-embedded/esptool/Manifest b/dev-embedded/esptool/Manifest
index fe021fb41fee..d07a0fa802fc 100644
--- a/dev-embedded/esptool/Manifest
+++ b/dev-embedded/esptool/Manifest
@@ -1 +1,2 @@
DIST esptool-1.3.tar.gz 34412 SHA256 f3fcf7f34d7c5467f29a43ddcd37e7c1d412f198bb8db928f50ed4cfc8da11f8 SHA512 7458dfb3818619b96ac1003349504feafe909f41bd5dfef1b482b45dd12cee55453b3cc60fbd05f342876dff97b17a487525d951283d69e355582c21d1acc14c WHIRLPOOL 06334c5dd2865d73cd74060a119cc44c0274ee51d5fc1460f1c5a4481f9869b1cf8f8e7f62577c893d3f27a6cf217019afaee521defb7185c2a4077df78d2892
+DIST esptool-2.0.tar.gz 67742 SHA256 ce9978d0f003e9ff1e2ebc5f25d035e84d73de44d002ce43117bd50c686269ec SHA512 b8a0342267e7897da54d2841b2b187b938dcd998ff777b7eada629e73b4b42d882b44159dbd70c304c14571770d69e2cfa8f97388b14b6c0e1ce0aaf282b116c WHIRLPOOL b64fa279e5c42ef251ab89a20f532086cfeb23e3e0c37fd6f58c633ddf4f344b54b0ebe73fcfe5c5645e35a909b2689bedf7e50576beaae1bf9bbafe0999347a
diff --git a/dev-embedded/esptool/esptool-2.0.ebuild b/dev-embedded/esptool/esptool-2.0.ebuild
new file mode 100644
index 000000000000..066db389f9aa
--- /dev/null
+++ b/dev-embedded/esptool/esptool-2.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32"
+HOMEPAGE="https://github.com/espressif/esptool"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}
+ dev-python/ecdsa[${PYTHON_USEDEP}]
+ dev-python/pyaes[${PYTHON_USEDEP}]
+ >=dev-python/pyserial-2.5[${PYTHON_USEDEP}]"
+
+RESTRICT="test" # Uses a device connected to the serial port
+
+python_test() {
+ ${EPYTHON} test/test_esptool.py || die
+}