summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/afdko
diff options
context:
space:
mode:
authorDrew Risinger <drewrisinger@users.noreply.github.com>2020-12-09 11:48:36 -0500
committerDrew Risinger <drewrisinger@users.noreply.github.com>2020-12-10 17:56:36 -0500
commitd6187d51636cde418e9dc9b6f51dfb964e250c35 (patch)
treed37ca206757e67530fc91b77be3a45cc642555ab /pkgs/development/python-modules/afdko
parentc2c9fcc89648bc33c7568db7b4a5364cbc7b8146 (diff)
python3Packages.afdko: use pytestCheckHook
Convert to standard pytestCheckHook. This allows easier testing of derivation build & disabling tests. Also disable slow tests.
Diffstat (limited to 'pkgs/development/python-modules/afdko')
-rw-r--r--pkgs/development/python-modules/afdko/default.nix18
1 files changed, 13 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/afdko/default.nix b/pkgs/development/python-modules/afdko/default.nix
index f1e3bf0cd56c..6371fa804bb0 100644
--- a/pkgs/development/python-modules/afdko/default.nix
+++ b/pkgs/development/python-modules/afdko/default.nix
@@ -3,7 +3,7 @@
, brotli, fontmath, mutatormath, booleanoperations
, ufoprocessor, ufonormalizer, psautohint, tqdm
, setuptools_scm
-, pytest
+, pytestCheckHook
}:
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/1216
doCheck = stdenv.isx86_64;
- checkInputs = [ pytest ];
- checkPhase = ''
- PATH="$PATH:$out/bin" py.test
- '';
+ checkInputs = [ pytestCheckHook ];
+ preCheck = "export PATH=$PATH:$out/bin";
+ 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; {
description = "Adobe Font Development Kit for OpenType";