Merge pull request #151057 from prusnak/python-trezor

python3Packages.trezor: use pytestCheckHook
This commit is contained in:
Pavol Rusnak 2021-12-17 08:52:39 +01:00 committed by GitHub
commit b066b19c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@
, shamir-mnemonic
, typing-extensions
, trezor-udev-rules
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
@ -54,16 +54,7 @@ buildPythonPackage rec {
trezor-udev-rules
];
checkInputs = [
pytest
];
# disable test_tx_api.py as it requires being online
checkPhase = ''
runHook preCheck
pytest --pyargs tests --ignore tests/test_tx_api.py
runHook postCheck
'';
checkInputs = [ pytestCheckHook ];
postFixup = ''
mkdir completions