Unverified Commit 21a14ae8 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

esptool: fix esptool import for entrypoints

The .py entrypoints are deprecated anyway and they cause us trouble,
because the wrapper tries to import esptool and finds $out/bin/esptool.py
instead of the library in site-packages.
parent 5c017a84
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"