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