tests: pin all Python test dependencies to exact versions
What changed, and why it matters
This commit pins the exact versions of Python testing tools used by the project's automated tests. Previously, the test setup allowed any newly released version of those tools to be installed automatically, which could introduce unexpected changes or malicious code from a compromised dependency into the CI/test environment. Pinning versions is a routine supply-chain hygiene improvement; it does not fix a known vulnerability in the app itself.
No immediate security action required. Treat as routine hardening. If stronger supply-chain assurance is needed, consider installing the editable bitcoin_client separately so the remaining pinned dependencies can be verified with hashes, and review the locked versions for known CVEs before merging.
Security signals we found
Supply-chain risk reduction for test/CI dependencies
Prevents unreviewed automatic upgrades of speculos and ragger
No change to firmware or published package code
No hashes generated due to editable local package constraint
Evidence from the diff
The change converts requirements.txt from a set of version ranges to a fully locked dependency manifest generated by uv pip compile. Direct dependencies remain in requirements.in with ranges, while requirements.txt now contains exact pinned versions for all direct and transitive packages, including conditional environment markers. Hashes are not included because the editable ./bitcoin_client requirement is incompatible with pip’s hash-checking mode. The commit is purely a CI/test dependency lock and does not modify the Ledger Bitcoin app firmware code or the published ledger_bitcoin package.
Changed components
tests/requirements.txttests/requirements.inCI test environment dependency resolutionInspect captured patch +329 / −14
### requirements.in
@@ -0,0 +1,15 @@
+# requirements for the various test suites
+# requirements.txt is generated from this file (see the command at its top).
+
+pytest>=6.1.1,<7.0.0
+pytest-benchmark>=4.0.0,<5.0.0
+pytest-timeout>=2.1.0,<3.0.0
+ledgercomm>=1.1.0,<2.0.0
+ecdsa>=0.16.1,<0.17.0
+typing-extensions>=4.16.0,<5.0.0
+embit>=0.7.0,<0.8.0
+mnemonic>=0.20,<0.21
+bip32>=3.4,<4.0
+speculos>=0.21.2
+ragger[speculos, ledgerwallet]>=1.37.0
+-e ./bitcoin_client # path relative to the current working directory; assume it's the root of the repo
### requirements.txt
@@ -1,14 +1,314 @@
-# requirements for the various test suites
-
-pytest>=6.1.1,<7.0.0
-pytest-benchmark>=4.0.0,<5.0.0
-pytest-timeout>=2.1.0,<3.0.0
-ledgercomm>=1.1.0,<1.2.0
-ecdsa>=0.16.1,<0.17.0
-typing-extensions>=4.16.0,<5.0.0
-embit>=0.7.0,<0.8.0
-mnemonic>=0.20,<0.21
-bip32>=3.4,<4.0
-speculos>=0.21.2
-ragger[speculos, ledgerwallet]>=1.37.0
--e ./bitcoin_client # path relative to the current working directory; assume it's the root of the repo
+# This file was autogenerated by uv via the following command:
+# uv pip compile requirements.in --universal --python-version 3.9 -o requirements.txt
+-e ./bitcoin_client
+ # via -r requirements.in
+aniso8601==10.0.1
+ # via flask-restful
+annotated-types==0.7.0 ; python_full_version < '3.10'
+ # via pydantic
+annotated-types==0.8.0 ; python_full_version >= '3.10'
+ # via pydantic
+asn1crypto==1.5.1
+ # via coincurve
+atomicwrites==1.4.1 ; sys_platform == 'win32'
+ # via pytest
+attrs==26.1.0
+ # via
+ # jsonschema
+ # pytest
+ # referencing
+base58==2.1.1
+ # via bip32
+bip-utils==2.9.1
+ # via ragger
+bip32==3.4
+ # via -r requirements.in
+blinker==1.9.0
+ # via flask
+cbor2==5.9.0
+ # via bip-utils
+certifi==2026.10.23
+ # via requests
+cffi==2.0.0 ; python_full_version < '3.10'
+ # via
+ # coincurve
+ # cryptography
+ # pynacl
+cffi==2.1.1 ; python_full_version >= '3.10'
+ # via
+ # coincurve
+ # cryptography
+ # pynacl
+charset-normalizer==3.5.2
+ # via requests
+click==8.1.8 ; python_full_version < '3.10'
+ # via
+ # flask
+ # ledgerwallet
+click==8.5.1 ; python_full_version >= '3.10'
+ # via
+ # flask
+ # ledgerwallet
+coincurve==18.0.0
+ # via
+ # bip-utils
+ # bip32
+colorama==0.4.6 ; sys_platform == 'win32'
+ # via
+ # click
+ # pytest
+construct==2.10.70
+ # via
+ # ledgerwallet
+ # speculos
+crcmod==1.7
+ # via bip-utils
+cryptography==47.0.0 ; python_full_version <= '3.9'
+ # via
+ # ledgerwallet
+ # pyjwt
+cryptography==50.0.2 ; python_full_version > '3.9'
+ # via
+ # ledgerwallet
+ # pyjwt
+ecdsa==0.16.1
+ # via
+ # -r requirements.in
+ # bip-utils
+ # ledgerwallet
+ # ragger
+ed25519-blake2b==1.4.1
+ # via bip-utils
+embit==0.7.0
+ # via -r requirements.in
+flask==2.3.3
+ # via
+ # flask-cors
+ # flask-restful
+ # speculos
+flask-cors==6.0.5
+ # via speculos
+flask-restful==0.3.10
+ # via speculos
+hidapi==0.15.0
+ # via ledgerwallet
+idna==3.20
+ # via requests
+importlib-metadata==8.7.1 ; python_full_version < '3.10'
+ # via flask
+iniconfig==2.1.0 ; python_full_version < '3.10'
+ # via pytest
+iniconfig==2.3.1 ; python_full_version >= '3.10'
+ # via pytest
+intelhex==2.3.0
+ # via ledgerwallet
+itsdangerous==2.2.0
+ # via flask
+jinja2==3.1.6
+ # via flask
+jsonschema==4.17.3 ; python_full_version < '3.10'
+ # via speculos
+jsonschema==4.26.0 ; python_full_version >= '3.10'
+ # via speculos
+jsonschema-specifications==2025.9.1 ; python_full_version >= '3.10'
+ # via jsonschema
+ledgercomm==1.2.1
+ # via
+ # -r requirements.in
+ # ledger-bitcoin
+ledgered==0.15.0 ; python_full_version < '3.11'
+ # via
+ # ragger
+ # speculos
+ledgered==0.17.0 ; python_full_version >= '3.11'
+ # via
+ # ragger
+ # speculos
+ledgerwallet==0.10.0
+ # via ragger
+markupsafe==3.0.4
+ # via
+ # jinja2
+ # werkzeug
+mnemonic==0.20
+ # via
+ # -r requirements.in
+ # ragger
+ # speculos
+packaging==26.3
+ # via
+ # ledger-bitcoin
+ # pytesseract
+ # pytest
+pillow==10.4.0 ; python_full_version < '3.10'
+ # via
+ # ledgerwallet
+ # pytesseract
+ # ragger
+ # speculos
+pillow==12.3.0 ; python_full_version >= '3.10'
+ # via
+ # ledgerwallet
+ # pytesseract
+ # ragger
+ # speculos
+pluggy==1.6.0 ; python_full_version < '3.10'
+ # via pytest
+pluggy==1.7.0 ; python_full_version >= '3.10'
+ # via pytest
+protobuf==5.29.6
+ # via ledgerwallet
+py==1.11.0
+ # via pytest
+py-cpuinfo==9.0.0
+ # via pytest-benchmark
+py-sr25519-bindings==0.2.4
+ # via
+ # bip-utils
+ # ragger
+pycparser==2.23 ; python_full_version < '3.10' and implementation_name != 'PyPy'
+ # via cffi
+pycparser==3.11 ; python_full_version == '3.10.*' and implementation_name != 'PyPy'
+ # via cffi
+pycparser==3.12 ; python_full_version >= '3.11' and implementation_name != 'PyPy'
+ # via cffi
+pycryptodome==3.24.1
+ # via bip-utils
+pydantic==2.13.5 ; python_full_version < '3.10'
+ # via ledgered
+pydantic==2.14.3 ; python_full_version >= '3.10'
+ # via ledgered
+pydantic-core==2.46.5 ; python_full_version < '3.10'
+ # via pydantic
+pydantic-core==2.50.4 ; python_full_version >= '3.10'
+ # via pydantic
+pyelftools==0.32 ; python_full_version < '3.10'
+ # via
+ # ledgered
+ # speculos
+pyelftools==0.33 ; python_full_version >= '3.10'
+ # via
+ # ledgered
+ # speculos
+pygame==2.6.1
+ # via speculos
+pygithub==2.9.1 ; python_full_version < '3.10'
+ # via ledgered
+pygithub==2.10.0 ; python_full_version >= '3.10'
+ # via ledgered
+pyjwt==2.15.1
+ # via pygithub
+pynacl==1.6.2
+ # via
+ # bip-utils
+ # pygithub
+pyqt6==6.10.2 ; python_full_version < '3.10'
+ # via
+ # ragger
+ # speculos
+pyqt6==6.12.0 ; python_full_version >= '3.10'
+ # via
+ # ragger
+ # speculos
+pyqt6-qt6==6.10.2 ; python_full_version < '3.10'
+ # via pyqt6
+pyqt6-qt6==6.12.0 ; python_full_version >= '3.10'
+ # via pyqt6
+pyqt6-sip==13.10.2 ; python_full_version < '3.10'
+ # via pyqt6
+pyqt6-sip==13.13.0 ; python_full_version >= '3.10'
+ # via pyqt6
+pyrsistent==0.20.0 ; python_full_version < '3.10'
+ # via jsonschema
+pytesseract==0.3.13
+ # via ragger
+pytest==6.2.5
+ # via
+ # -r requirements.in
+ # pytest-benchmark
+ # pytest-timeout
+pytest-benchmark==4.0.0
+ # via -r requirements.in
+pytest-timeout==2.2.0
+ # via -r requirements.in
+pytz==2026.6
+ # via flask-restful
+ragger==1.47.2 ; python_full_version < '3.11'
+ # via -r requirements.in
+ragger==1.47.4 ; python_full_version >= '3.11'
+ # via -r requirements.in
+referencing==0.37.0 ; python_full_version >= '3.10'
+ # via
+ # jsonschema
+ # jsonschema-specifications
+requests==2.32.5 ; python_full_version < '3.10'
+ # via
+ # ledgerwallet
+ # pygithub
+ # speculos
+requests==2.34.2 ; python_full_version >= '3.10'
+ # via
+ # ledgerwallet
+ # pygithub
+ # speculos
+rpds-py==0.30.0 ; python_full_version == '3.10.*'
+ # via
+ # jsonschema
+ # referencing
+rpds-py==2026.9.1 ; python_full_version >= '3.11'
+ # via
+ # jsonschema
+ # referencing
+six==1.17.0
+ # via
+ # ecdsa
+ # flask-restful
+speculos==0.25.10 ; python_full_version < '3.10'
+ # via
+ # -r requirements.in
+ # ragger
+speculos==0.27.4 ; python_full_version >= '3.10'
+ # via
+ # -r requirements.in
+ # ragger
+tabulate==0.9.0 ; python_full_version < '3.10'
+ # via ledgerwallet
+tabulate==0.10.0 ; python_full_version >= '3.10'
+ # via ledgerwallet
+toml==0.10.2
+ # via
+ # ledgerwallet
+ # pytest
+ # ragger
+tomli==2.5.0
+ # via ledgered
+typing-extensions==4.16.0
+ # via
+ # -r requirements.in
+ # cryptography
+ # flask-cors
+ # ledger-bitcoin
+ # pydantic
+ # pydantic-core
+ # pygithub
+ # pyjwt
+ # referencing
+ # typing-inspection
+typing-inspection==0.4.2 ; python_full_version < '3.10'
+ # via pydantic
+typing-inspection==0.4.5 ; python_full_version >= '3.10'
+ # via pydantic
+urllib3==2.6.3 ; python_full_version < '3.10'
+ # via
+ # pygithub
+ # requests
+urllib3==2.8.0 ; python_full_version >= '3.10'
+ # via
+ # pygithub
+ # requests
+werkzeug==3.1.9
+ # via
+ # flask
+ # flask-cors
+zipp==3.23.1 ; python_full_version < '3.10'
+ # via importlib-metadataWhy this scored 20/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.