mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:59:25 +00:00
2c2cd34b54
It actually requires flake8-future-import but manages to download it from the Internet when run outside the sandbox.
25 lines
719 B
Nix
25 lines
719 B
Nix
{ stdenv, fetchFromGitHub, python3, openssl }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
name = "esptool-${version}";
|
|
version = "2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "espressif";
|
|
repo = "esptool";
|
|
rev = "v${version}";
|
|
sha256 = "137p0kcscly95qpjzgx1yxm8k2wf5y9v3srvlhp2ajniirgv8ijv";
|
|
};
|
|
|
|
buildInputs = with python3.pkgs; [ flake8 flake8-future-import ];
|
|
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 = [ maintainers.dezgeg ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|