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