fix(nbconvert): patch templateexporter to add out/share/jupyter

This commit is contained in:
Phillip Cloud 2022-07-02 09:53:30 -05:00
parent abc47c71a4
commit e834b72e8c
No known key found for this signature in database
GPG key ID: D908212070FD785E

View file

@ -2405,6 +2405,16 @@ lib.composeManyExtensions [
buildInputs = (old.buildInputs or [ ]) ++ [ self.Babel ];
});
nbconvert = super.nbconvert.overridePythonAttrs (_: {
postPatch = ''
substituteInPlace \
./nbconvert/exporters/templateexporter.py \
--replace \
'root_dirs.extend(jupyter_path())' \
'root_dirs.extend(jupyter_path() + [os.path.join("@out@", "share", "jupyter")])' \
--subst-var out
'';
});
}
)