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}";
|
2017-09-18 01:30:13 +01:00
|
|
|
version = "2.1";
|
2017-05-24 00:44:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "espressif";
|
|
|
|
repo = "esptool";
|
|
|
|
rev = "v${version}";
|
2017-09-18 01:30:13 +01:00
|
|
|
sha256 = "137p0kcscly95qpjzgx1yxm8k2wf5y9v3srvlhp2ajniirgv8ijv";
|
2017-05-24 00:44:38 +01:00
|
|
|
};
|
|
|
|
|
2017-09-20 15:54:42 +01:00
|
|
|
buildInputs = with python3.pkgs; [ flake8 flake8-future-import ];
|
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;
|
|
|
|
maintainers = [ maintainers.dezgeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|