7 python3Packages.buildPythonApplication rec {
12 src = fetchFromGitHub {
15 rev = "refs/tags/v${version}";
16 hash = "sha256-cNEg2a3j7Vql06GwVaE9y86UtMkNsUdJYM00OEUra2w=";
22 substituteInPlace test/test_espsecure_hsm.py \
23 --replace-fail "/usr/lib/softhsm" "${lib.getLib softhsm}/lib/softhsm"
26 build-system = with python3Packages; [
30 dependencies = with python3Packages; [
41 optional-dependencies = with python3Packages; {
42 hsm = [ python-pkcs11 ];
45 nativeCheckInputs = with python3Packages; [
49 ] ++ lib.flatten (lib.attrValues optional-dependencies);
51 # tests mentioned in `.github/workflows/test_esptool.yml`
55 export SOFTHSM2_CONF=$(mktemp)
56 echo "directories.tokendir = $(mktemp -d)" > "$SOFTHSM2_CONF"
57 ./ci/setup_softhsm2.sh
59 pytest test/test_imagegen.py
60 pytest test/test_espsecure.py
61 pytest test/test_espsecure_hsm.py
62 pytest test/test_merge_bin.py
63 pytest test/test_image_info.py
64 pytest test/test_modules.py
70 changelog = "https://github.com/espressif/esptool/blob/${src.rev}/CHANGELOG.md";
71 description = "ESP8266 and ESP32 serial bootloader utility";
72 homepage = "https://github.com/espressif/esptool";
73 license = licenses.gpl2Plus;
74 maintainers = with maintainers; [ dezgeg dotlambda ] ++ teams.lumiguide.members;
75 platforms = with platforms; linux ++ darwin;
76 mainProgram = "esptool.py";