esptool: 4.5.1 -> 4.6.2
Diff: https://github.com/espressif/esptool/compare/v4.5.1...v4.6.2
This commit is contained in:
parent
ed75ab352f
commit
c7743cd496
|
@ -1,38 +1,56 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python3
|
, python3
|
||||||
|
, softhsm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "esptool";
|
pname = "esptool";
|
||||||
version = "4.5.1";
|
version = "4.6.2";
|
||||||
|
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "espressif";
|
owner = "espressif";
|
||||||
repo = "esptool";
|
repo = "esptool";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-FKFw7czXzC8F3OXjlLoJEFaqsSgqWz0ZEqd7KjCy5Ik=";
|
hash = "sha256-3uvTyJrGCpulu/MR/VfCgnIxibxJj2ehBIBSveq7EfI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs ci
|
||||||
|
|
||||||
|
substituteInPlace test/test_espsecure_hsm.py \
|
||||||
|
--replace "/usr/lib/softhsm" "${lib.getLib softhsm}/lib/softhsm"
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
bitstring
|
bitstring
|
||||||
cryptography
|
cryptography
|
||||||
ecdsa
|
ecdsa
|
||||||
pyserial
|
pyserial
|
||||||
reedsolo
|
reedsolo
|
||||||
|
pyyaml
|
||||||
|
python-pkcs11
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = with python3.pkgs; [
|
nativeCheckInputs = with python3.pkgs; [
|
||||||
pyelftools
|
pyelftools
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
softhsm
|
||||||
];
|
];
|
||||||
|
|
||||||
# tests mentioned in `.github/workflows/test_esptool.yml`
|
# tests mentioned in `.github/workflows/test_esptool.yml`
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
|
|
||||||
|
export SOFTHSM2_CONF=$(mktemp)
|
||||||
|
echo "directories.tokendir = $(mktemp -d)" > "$SOFTHSM2_CONF"
|
||||||
|
./ci/setup_softhsm2.sh
|
||||||
|
|
||||||
pytest test/test_imagegen.py
|
pytest test/test_imagegen.py
|
||||||
pytest test/test_espsecure.py
|
pytest test/test_espsecure.py
|
||||||
|
pytest test/test_espsecure_hsm.py
|
||||||
pytest test/test_merge_bin.py
|
pytest test/test_merge_bin.py
|
||||||
pytest test/test_image_info.py
|
pytest test/test_image_info.py
|
||||||
pytest test/test_modules.py
|
pytest test/test_modules.py
|
||||||
|
|
Loading…
Reference in a new issue