8 python3Packages.buildPythonApplication rec {
13 src = fetchFromGitHub {
17 hash = "sha256-cNEg2a3j7Vql06GwVaE9y86UtMkNsUdJYM00OEUra2w=";
23 substituteInPlace test/test_espsecure_hsm.py \
24 --replace-fail "/usr/lib/softhsm" "${lib.getLib softhsm}/lib/softhsm"
27 build-system = with python3Packages; [
31 dependencies = with python3Packages; [
42 optional-dependencies = with python3Packages; {
43 hsm = [ python-pkcs11 ];
53 ++ lib.flatten (lib.attrValues optional-dependencies);
55 # tests mentioned in `.github/workflows/test_esptool.yml`
59 export SOFTHSM2_CONF=$(mktemp)
60 echo "directories.tokendir = $(mktemp -d)" > "$SOFTHSM2_CONF"
61 ./ci/setup_softhsm2.sh
63 pytest test/test_imagegen.py
64 pytest test/test_espsecure.py
65 pytest test/test_espsecure_hsm.py
66 pytest test/test_merge_bin.py
67 pytest test/test_image_info.py
68 pytest test/test_modules.py
74 changelog = "https://github.com/espressif/esptool/blob/${src.rev}/CHANGELOG.md";
75 description = "ESP8266 and ESP32 serial bootloader utility";
76 homepage = "https://github.com/espressif/esptool";
77 license = licenses.gpl2Plus;
84 ++ teams.lumiguide.members;
85 platforms = with platforms; linux ++ darwin;
86 mainProgram = "esptool.py";