python3Packages.afdko: use pytestCheckHook
Convert to standard pytestCheckHook. This allows easier testing of derivation build & disabling tests. Also disable slow tests.
This commit is contained in:
parent
c2c9fcc896
commit
d6187d5163
@ -3,7 +3,7 @@
|
|||||||
, brotli, fontmath, mutatormath, booleanoperations
|
, brotli, fontmath, mutatormath, booleanoperations
|
||||||
, ufoprocessor, ufonormalizer, psautohint, tqdm
|
, ufoprocessor, ufonormalizer, psautohint, tqdm
|
||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -52,10 +52,18 @@ buildPythonPackage rec {
|
|||||||
# https://github.com/adobe-type-tools/afdko/issues/1163
|
# https://github.com/adobe-type-tools/afdko/issues/1163
|
||||||
# https://github.com/adobe-type-tools/afdko/issues/1216
|
# https://github.com/adobe-type-tools/afdko/issues/1216
|
||||||
doCheck = stdenv.isx86_64;
|
doCheck = stdenv.isx86_64;
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
checkPhase = ''
|
preCheck = "export PATH=$PATH:$out/bin";
|
||||||
PATH="$PATH:$out/bin" py.test
|
disabledTests = [
|
||||||
'';
|
# Disable slow tests, reduces test time ~25 %
|
||||||
|
"test_report"
|
||||||
|
"test_post_overflow"
|
||||||
|
"test_cjk"
|
||||||
|
"test_extrapolate"
|
||||||
|
"test_filename_without_dir"
|
||||||
|
"test_overwrite"
|
||||||
|
"test_options"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Adobe Font Development Kit for OpenType";
|
description = "Adobe Font Development Kit for OpenType";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user