python310Packages.papermill: convert to pytestCheckHook, remove pytest-cov, black

This commit is contained in:
Sandro Jäckel 2022-06-28 19:39:42 +02:00
parent 065eee5e2f
commit b68f511512
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -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