mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
Merge pull request #151057 from prusnak/python-trezor
python3Packages.trezor: use pytestCheckHook
This commit is contained in:
commit
b066b19c68
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user