lol
1{ stdenv, fetchFromGitHub, python3, openssl }:
2
3python3.pkgs.buildPythonApplication rec {
4 name = "esptool-${version}";
5 version = "2.3.1";
6
7 src = fetchFromGitHub {
8 owner = "espressif";
9 repo = "esptool";
10 rev = "v${version}";
11 sha256 = "0gwnl6z5s2ax07l3n38h9hdyz71pn8lzn4fybcwyrii0bj2kapvc";
12 };
13
14 checkInputs = with python3.pkgs; [ flake8 flake8-future-import flake8-import-order ];
15 propagatedBuildInputs = with python3.pkgs; [ pyserial pyaes ecdsa openssl ];
16
17 meta = with stdenv.lib; {
18 description = "ESP8266 and ESP32 serial bootloader utility";
19 homepage = https://github.com/espressif/esptool;
20 license = licenses.gpl2;
21 maintainers = with maintainers; [ dezgeg dotlambda ];
22 platforms = platforms.linux;
23 };
24}