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 , entrypoints
, tenacity , tenacity
, futures ? null , futures ? null
, black
, backports_tempfile , backports_tempfile
, isPy27 , isPy27
, pytest , pytestCheckHook
, pytest-cov
, pytest-mock , pytest-mock
}: }:
@ -46,20 +44,18 @@ buildPythonPackage rec {
requests requests
entrypoints entrypoints
tenacity tenacity
black
] ++ lib.optionals isPy27 [ ] ++ lib.optionals isPy27 [
futures futures
backports_tempfile backports_tempfile
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
pytest-cov
pytest-mock pytest-mock
]; ];
checkPhase = '' preCheck = ''
HOME=$(mktemp -d) pytest export HOME=$(mktemp -d)
''; '';
# the test suite depends on cloud resources azure/aws # the test suite depends on cloud resources azure/aws