Unverified Commit 9458c495 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.esp-idf-size: add 1.x argparse compat (#461089)

parents 4915bcb9 a939166c
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
diff --git a/esp_idf_size/main.py b/esp_idf_size/main.py
index a600b90..cfe3618 100644
--- a/esp_idf_size/main.py
+++ b/esp_idf_size/main.py
@@ -45,6 +45,8 @@ def main() -> None:
     parser = argparse.ArgumentParser(prog='esp_idf_size',
                                      description='This tool displays firmware size information for project built by ESP-IDF')
 
+    parser.add_argument('--ng', action='store_true', help="stub for 1.x compat")
+
     parser.add_argument('input_file',
                         metavar='MAP_FILE',
                         help='Path to the link map file generated by the ESP-IDF build system.')
+5 −0
Original line number Diff line number Diff line
@@ -29,6 +29,11 @@ buildPythonPackage rec {
    hash = "sha256-LnaS6lm2/fy9aWiV/MuRKegDAmjljQFvp+uI8FmEpdI=";
  };

  patches = [
    # add back --ng flag as a stub to argparser for compat reason
    ./1.x-compat.patch
  ];

  build-system = [ setuptools ];

  dependencies = [