Skip to content

Commit 5acdd7e

Browse files
authored
esptool: fix esptool import for entrypoints (#435591)
2 parents 39f09b0 + 21a14ae commit 5acdd7e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pkgs/by-name/es/esptool/package.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ python3Packages.buildPythonApplication rec {
4343
hsm = [ python-pkcs11 ];
4444
};
4545

46+
postInstall = ''
47+
rm -v $out/bin/*.py
48+
'';
49+
4650
nativeCheckInputs =
4751
with python3Packages;
4852
[
@@ -62,6 +66,15 @@ python3Packages.buildPythonApplication rec {
6266
"host_test"
6367
];
6468

69+
disabledTests = [
70+
# remove the deprecated .py entrypoints, because our wrapper tries to
71+
# import esptool and finds esptool.py in $out/bin, which breaks.
72+
"test_esptool_py"
73+
"test_espefuse_py"
74+
"test_espsecure_py"
75+
"test_esp_rfc2217_server_py"
76+
];
77+
6578
postCheck = ''
6679
export SOFTHSM2_CONF=$(mktemp)
6780
echo "directories.tokendir = $(mktemp -d)" > "$SOFTHSM2_CONF"

0 commit comments

Comments
 (0)