2017-09-18 02:30:13 +02:00
|
|
|
{ stdenv, fetchFromGitHub, python3, openssl }:
|
2017-05-24 01:44:38 +02:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
name = "esptool-${version}";
|
2018-06-27 15:46:01 +02:00
|
|
|
version = "2.4.1";
|
2017-05-24 01:44:38 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "espressif";
|
|
|
|
repo = "esptool";
|
|
|
|
rev = "v${version}";
|
2018-06-27 15:46:01 +02:00
|
|
|
sha256 = "1djlmqdvcyqjqbj225xkn4ix9qr01b8pmsdija2h4nizx77xjyng";
|
2017-05-24 01:44:38 +02:00
|
|
|
};
|
|
|
|
|
2018-03-01 12:10:19 +01:00
|
|
|
checkInputs = with python3.pkgs; [ flake8 flake8-future-import flake8-import-order ];
|
2017-09-18 02:30:13 +02:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [ pyserial pyaes ecdsa openssl ];
|
2017-05-24 01:44:38 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "ESP8266 and ESP32 serial bootloader utility";
|
|
|
|
homepage = https://github.com/espressif/esptool;
|
|
|
|
license = licenses.gpl2;
|
2018-03-01 12:18:14 +01:00
|
|
|
maintainers = with maintainers; [ dezgeg dotlambda ];
|
2017-05-24 01:44:38 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|