mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
python310Packages.papermill: convert to pytestCheckHook, remove pytest-cov, black
This commit is contained in:
parent
065eee5e2f
commit
b68f511512
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user