Skip to content

Commit

Permalink
calibre: enable tests (#338867)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSuisse authored Sep 12, 2024
2 parents a7aedde + fd7c768 commit 2cc090d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pkgs/applications/misc/calibre/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,28 @@ stdenv.mkDerivation (finalAttrs: {
done
'';

doInstallCheck = true;
installCheckInputs = with python3Packages; [
fonttools
psutil
];
installCheckPhase = ''
runHook preInstallCheck
ETN='--exclude-test-name'
EXCLUDED_FLAGS=(
$ETN 'test_7z' # we don't include 7z support
$ETN 'test_zstd' # we don't include zstd support
$ETN 'test_qt' # we don't include svg or webp support
$ETN 'test_import_of_all_python_modules' # explores actual file paths, gets confused
${lib.optionalString (!unrarSupport) "$ETN 'test_unrar'"}
)
python setup.py test ''${EXCLUDED_FLAGS[@]}
runHook postInstallCheck
'';

meta = {
homepage = "https://calibre-ebook.com";
description = "Comprehensive e-book software";
Expand Down

0 comments on commit 2cc090d

Please sign in to comment.