test: beef up nbconvert wheel test to check for template path patch

This commit is contained in:
Phillip Cloud 2022-12-19 14:47:12 -05:00
parent 4ba5abf9dc
commit cefd25bc6a
No known key found for this signature in database
GPG key ID: D908212070FD785E

View file

@ -6,7 +6,11 @@ let
poetrylock = ./poetry.lock;
preferWheels = true;
};
py = env.python;
pkg = py.pkgs.nbconvert;
isNbConvertWheel = pkg.src.isWheel;
in
runCommand "nbconvert-wheel" { } ''
assert isNbConvertWheel; runCommand "nbconvert-wheel" { } ''
${env}/bin/python -c 'import nbconvert as nbc; print(nbc.__version__)' > $out
grep -q '"${pkg}", "share", "jupyter"' "${pkg}/${py.sitePackages}/nbconvert/exporters/templateexporter.py"
''