Unverified Commit 5acdd7e2 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

esptool: fix esptool import for entrypoints (#435591)

parents 39f09b02 21a14ae8
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -43,6 +43,10 @@ python3Packages.buildPythonApplication rec {
    hsm = [ python-pkcs11 ];
  };

  postInstall = ''
    rm -v $out/bin/*.py
  '';

  nativeCheckInputs =
    with python3Packages;
    [
@@ -62,6 +66,15 @@ python3Packages.buildPythonApplication rec {
    "host_test"
  ];

  disabledTests = [
    # remove the deprecated .py entrypoints, because our wrapper tries to
    # import esptool and finds esptool.py in $out/bin, which breaks.
    "test_esptool_py"
    "test_espefuse_py"
    "test_espsecure_py"
    "test_esp_rfc2217_server_py"
  ];

  postCheck = ''
    export SOFTHSM2_CONF=$(mktemp)
    echo "directories.tokendir = $(mktemp -d)" > "$SOFTHSM2_CONF"