sageWithDoc: cleanup sagedoc.nix

main
Mauricio Collares 2 years ago
parent 21ae98f5f0
commit 727e5a1473
  1. 3
      pkgs/applications/science/math/sage/default.nix
  2. 29
      pkgs/applications/science/math/sage/sagedoc.nix

@ -78,8 +78,7 @@ let
# The documentation for sage, building it takes a lot of ram. # The documentation for sage, building it takes a lot of ram.
sagedoc = callPackage ./sagedoc.nix { sagedoc = callPackage ./sagedoc.nix {
inherit sage-with-env; inherit sage-with-env jupyter-kernel-specs;
inherit python3 maxima jupyter-kernel-specs;
}; };
# sagelib with added wrappers and a dependency on sage-tests to make sure thet tests were run. # sagelib with added wrappers and a dependency on sage-tests to make sure thet tests were run.

@ -2,10 +2,6 @@
, sage-with-env , sage-with-env
, python3 , python3
, jupyter-kernel-specs , jupyter-kernel-specs
, maxima
, tachyon
, jmol
, cddlib
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -13,30 +9,7 @@ stdenv.mkDerivation rec {
pname = "sagedoc"; pname = "sagedoc";
src = sage-with-env.env.lib.src; src = sage-with-env.env.lib.src;
strictDeps = true;
# Building the documentation has many dependencies, because all documented
# modules are imported and because matplotlib is used to produce plots.
buildInputs = [
sage-with-env
python3
maxima
tachyon
jmol
cddlib
] ++ (with python3.pkgs; [
sage-docbuild
psutil
future
sphinx
scipy
sympy
matplotlib
pillow
networkx
ipykernel
ipywidgets
jupyter-client
]);
unpackPhase = '' unpackPhase = ''
export SAGE_DOC_OVERRIDE="$PWD/share/doc/sage" export SAGE_DOC_OVERRIDE="$PWD/share/doc/sage"

Loading…
Cancel
Save