diff --git a/pkgs/development/python-modules/ofxtools/default.nix b/pkgs/development/python-modules/ofxtools/default.nix index 552267ee759d7..cbf5d5e3c0b2b 100644 --- a/pkgs/development/python-modules/ofxtools/default.nix +++ b/pkgs/development/python-modules/ofxtools/default.nix @@ -2,7 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, - nose, + pytestCheckHook, pythonOlder, }: @@ -21,11 +21,11 @@ buildPythonPackage rec { hash = "sha256-NsImnD+erhpakQnl1neuHfSKiV6ipNBMPGKMDM0gwWc="; }; - nativeCheckInputs = [ nose ]; + nativeCheckInputs = [ pytestCheckHook ]; # override $HOME directory: # error: [Errno 13] Permission denied: '/homeless-shelter' - checkPhase = '' - HOME=$TMPDIR nosetests tests/*.py + preCheck = '' + export HOME=$(mktemp -d) ''; meta = with lib; {