mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
fix(nbconvert): patch templateexporter to add out/share/jupyter
This commit is contained in:
parent
abc47c71a4
commit
e834b72e8c
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
});
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue