Skip to content

Commit

Permalink
calibre: enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
risicle committed Sep 1, 2024
1 parent 6675058 commit fd7c768
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 fd7c768

Please sign in to comment.