2017-09-18 00:30:13 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python3, openssl }:
|
2017-05-23 23:44:38 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-07-17 23:16:57 +00:00
|
|
|
pname = "esptool";
|
2019-07-19 09:55:04 +00:00
|
|
|
version = "2.7";
|
2017-05-23 23:44:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "espressif";
|
|
|
|
repo = "esptool";
|
|
|
|
rev = "v${version}";
|
2019-07-19 09:55:04 +00:00
|
|
|
sha256 = "1p5hx0rhs986ffqz78rdxg7jayndsq632399xby39k17kvd3mb31";
|
2017-05-23 23:44:38 +00:00
|
|
|
};
|
|
|
|
|
2019-01-09 13:54:58 +00:00
|
|
|
checkInputs = with python3.pkgs; [ flake8 flake8-future-import flake8-import-order openssl ];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [ pyserial pyaes ecdsa ];
|
2017-05-23 23:44:38 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "ESP8266 and ESP32 serial bootloader utility";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/espressif/esptool";
|
2017-05-23 23:44:38 +00:00
|
|
|
license = licenses.gpl2;
|
2018-03-01 11:18:14 +00:00
|
|
|
maintainers = with maintainers; [ dezgeg dotlambda ];
|
2017-05-23 23:44:38 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|