esptool: 4.9.0 -> 5.0.2 (#432933)

authored by

dotlambda and committed by
GitHub
59077adf 7ec6356e

+20 -20
+20 -20
pkgs/by-name/es/esptool/package.nix
··· 7 8 python3Packages.buildPythonApplication rec { 9 pname = "esptool"; 10 - version = "4.9.0"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "espressif"; 15 repo = "esptool"; 16 tag = "v${version}"; 17 - hash = "sha256-iIFjInqiqjeqiDYL7BU3vT99pCVnu8OhU7u9uKwe/SI="; 18 }; 19 20 postPatch = '' ··· 29 ]; 30 31 dependencies = with python3Packages; [ 32 - argcomplete 33 bitstring 34 cryptography 35 - ecdsa 36 intelhex 37 pyserial 38 reedsolo 39 - pyyaml 40 ]; 41 42 optional-dependencies = with python3Packages; { ··· 48 [ 49 pyelftools 50 pytestCheckHook 51 softhsm 52 ] 53 ++ lib.flatten (lib.attrValues optional-dependencies); 54 55 - # tests mentioned in `.github/workflows/test_esptool.yml` 56 - checkPhase = '' 57 - runHook preCheck 58 59 export SOFTHSM2_CONF=$(mktemp) 60 echo "directories.tokendir = $(mktemp -d)" > "$SOFTHSM2_CONF" 61 ./ci/setup_softhsm2.sh 62 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 69 - 70 - runHook postCheck 71 ''; 72 73 - meta = with lib; { 74 changelog = "https://github.com/espressif/esptool/blob/${src.tag}/CHANGELOG.md"; 75 description = "ESP8266 and ESP32 serial bootloader utility"; 76 homepage = "https://github.com/espressif/esptool"; 77 - license = licenses.gpl2Plus; 78 - maintainers = with maintainers; [ 79 dezgeg 80 dotlambda 81 ]; 82 teams = [ lib.teams.lumiguide ]; 83 - platforms = with platforms; linux ++ darwin; 84 - mainProgram = "esptool.py"; 85 }; 86 }
··· 7 8 python3Packages.buildPythonApplication rec { 9 pname = "esptool"; 10 + version = "5.0.2"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "espressif"; 15 repo = "esptool"; 16 tag = "v${version}"; 17 + hash = "sha256-oRvtEBp88tmgjjIuoQS5ySm4I0aD/Zs8VLRUZo0sh/I="; 18 }; 19 20 postPatch = '' ··· 29 ]; 30 31 dependencies = with python3Packages; [ 32 bitstring 33 + click 34 cryptography 35 intelhex 36 pyserial 37 + pyyaml 38 reedsolo 39 + rich-click 40 ]; 41 42 optional-dependencies = with python3Packages; { ··· 48 [ 49 pyelftools 50 pytestCheckHook 51 + requests 52 softhsm 53 ] 54 ++ lib.flatten (lib.attrValues optional-dependencies); 55 56 + preCheck = '' 57 + export PATH="$out/bin:$PATH" 58 + ''; 59 60 + pytestFlags = [ 61 + "-m" 62 + "host_test" 63 + ]; 64 + 65 + postCheck = '' 66 export SOFTHSM2_CONF=$(mktemp) 67 echo "directories.tokendir = $(mktemp -d)" > "$SOFTHSM2_CONF" 68 ./ci/setup_softhsm2.sh 69 70 pytest test/test_espsecure_hsm.py 71 ''; 72 73 + meta = { 74 changelog = "https://github.com/espressif/esptool/blob/${src.tag}/CHANGELOG.md"; 75 description = "ESP8266 and ESP32 serial bootloader utility"; 76 homepage = "https://github.com/espressif/esptool"; 77 + license = lib.licenses.gpl2Plus; 78 + maintainers = with lib.maintainers; [ 79 dezgeg 80 dotlambda 81 ]; 82 teams = [ lib.teams.lumiguide ]; 83 + platforms = with lib.platforms; linux ++ darwin; 84 + mainProgram = "esptool"; 85 }; 86 }