about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2021-12-17 08:52:39 +0100
committerGitHub <noreply@github.com>2021-12-17 08:52:39 +0100
commitb066b19c6826d11132167b3a486c1911020a5783 (patch)
treeb49473ab167fea23db2c8194ad994d4c451a9ebb /pkgs
parent3ba70f59101b2b0fef637dec3ed15105ebd3418b (diff)
parentf398eed55137199fdc60d7a027e3dddd9d08d1a7 (diff)
Merge pull request #151057 from prusnak/python-trezor
python3Packages.trezor: use pytestCheckHook
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/trezor/default.nix13
1 files changed, 2 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/trezor/default.nix b/pkgs/development/python-modules/trezor/default.nix
index 137d671244583..78eb7eda0884e 100644
--- a/pkgs/development/python-modules/trezor/default.nix
+++ b/pkgs/development/python-modules/trezor/default.nix
@@ -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