build-systems: prevent nbconvert from pulling CSS from the web during buildPhase

This commit is contained in:
Tom Repetti 2022-10-08 18:06:58 -04:00
parent 2d00c767e1
commit 0cf66e7e10

View file

@ -2528,6 +2528,12 @@ lib.composeManyExtensions [
'root_dirs.extend(jupyter_path())' \ 'root_dirs.extend(jupyter_path())' \
'root_dirs.extend(jupyter_path() + [os.path.join("@out@", "share", "jupyter")])' \ 'root_dirs.extend(jupyter_path() + [os.path.join("@out@", "share", "jupyter")])' \
--subst-var out --subst-var out
'' + lib.optionalString (lib.versionAtLeast self.nbconvert.version "7.0") ''
substituteInPlace \
./hatch_build.py \
--replace \
'if self.target_name not in ["wheel", "sdist"]:' \
'if True:'
''; '';
}); });
} }