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.
This commit is contained in:
Martin Weinelt
2025-08-21 16:54:09 +02:00
parent 5c017a847d
commit 21a14ae8cc
+13
View File
@@ -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"