nixpkgs/pkgs/tools/misc/esptool/default.nix
2018-06-27 15:46:01 +02:00

24 lines
757 B
Nix

{ stdenv, fetchFromGitHub, python3, openssl }:
python3.pkgs.buildPythonApplication rec {
name = "esptool-${version}";
version = "2.4.1";
src = fetchFromGitHub {
owner = "espressif";
repo = "esptool";
rev = "v${version}";
sha256 = "1djlmqdvcyqjqbj225xkn4ix9qr01b8pmsdija2h4nizx77xjyng";
};
checkInputs = with python3.pkgs; [ flake8 flake8-future-import flake8-import-order ];
propagatedBuildInputs = with python3.pkgs; [ pyserial pyaes ecdsa openssl ];
meta = with stdenv.lib; {
description = "ESP8266 and ESP32 serial bootloader utility";
homepage = https://github.com/espressif/esptool;
license = licenses.gpl2;
maintainers = with maintainers; [ dezgeg dotlambda ];
platforms = platforms.linux;
};
}