From b68f51151277de47d53c01af8ef8aa9276b91d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 28 Jun 2022 19:39:42 +0200 Subject: [PATCH] python310Packages.papermill: convert to pytestCheckHook, remove pytest-cov, black --- .../development/python-modules/papermill/default.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/papermill/default.nix b/pkgs/development/python-modules/papermill/default.nix index 5c30e14db74..c9ef2298559 100644 --- a/pkgs/development/python-modules/papermill/default.nix +++ b/pkgs/development/python-modules/papermill/default.nix @@ -15,11 +15,9 @@ , entrypoints , tenacity , futures ? null -, black , backports_tempfile , isPy27 -, pytest -, pytest-cov +, pytestCheckHook , pytest-mock }: @@ -46,20 +44,18 @@ buildPythonPackage rec { requests entrypoints tenacity - black ] ++ lib.optionals isPy27 [ futures backports_tempfile ]; checkInputs = [ - pytest - pytest-cov + pytestCheckHook pytest-mock ]; - checkPhase = '' - HOME=$(mktemp -d) pytest + preCheck = '' + export HOME=$(mktemp -d) ''; # the test suite depends on cloud resources azure/aws