calibre-web: only use nixosTests on linux

(cherry picked from commit c303ae59c7)
This commit is contained in:
seth
2024-11-17 16:46:48 -05:00
committed by Seth Flynn
parent 9319c3bb29
commit 32308c1fca

View File

@@ -1,5 +1,6 @@
{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
nixosTests,
@@ -139,7 +140,7 @@ python3Packages.buildPythonApplication rec {
pythonImportsCheck = [ "calibreweb" ];
passthru = {
tests.calibre-web = nixosTests.calibre-web;
tests = lib.optionalAttrs stdenv.hostPlatform.isLinux { inherit (nixosTests) calibre-web; };
updateScript = nix-update-script { };
};