python39Packages.flit: switch to pytestCheckHook

This commit is contained in:
Sandro Jäckel 2022-03-27 20:12:44 +02:00
parent 0dc9824089
commit e34303895e
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -3,7 +3,7 @@
, fetchFromGitHub
, docutils
, requests
, pytest
, pytestCheckHook
, testpath
, responses
, flit-core
@ -40,13 +40,12 @@ buildPythonPackage rec {
tomli-w
];
checkInputs = [ pytest testpath responses ];
checkInputs = [ pytestCheckHook testpath responses ];
# Disable test that needs some ini file.
# Disable test that wants hg
checkPhase = ''
HOME=$(mktemp -d) pytest -k "not test_invalid_classifier and not test_build_sdist"
'';
disabledTests = [
# needs some ini file.
"test_invalid_classifier"
];
meta = with lib; {
description = "A simple packaging tool for simple packages";