sage: If docs are not enabled then don't include a doc attribute

there should be no doc attribute if docs are not enabled

the doc attribute is used in nixos/documentation.nix

https://github.com/NixOS/nixpkgs/blob/adeb7629fc6ccf986ccc7013efc60d5e6d5269f1/nixos/modules/misc/documentation.nix#L342

the doc will still be built because the doc attribute exists

Artturin cf3d29d6 211a86d6

+2 -1
+2 -1
pkgs/applications/science/math/sage/sage.nix
··· 47 47 passthru = { 48 48 tests = sage-tests; 49 49 quicktest = sage-tests.override { longTests = false; timeLimit = 600; }; # as many tests as possible in ~10m 50 - doc = sagedoc; 51 50 lib = sage-with-env.env.lib; 52 51 with-env = sage-with-env; 53 52 kernelspec = jupyter-kernel-definition; 53 + } // lib.optionalAttrs withDoc { 54 + doc = sagedoc; 54 55 }; 55 56 56 57 meta = with lib; {