mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 17:51:40 -05:00
test: beef up nbconvert wheel test to check for template path patch
This commit is contained in:
parent
4ba5abf9dc
commit
cefd25bc6a
1 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,11 @@ let
|
||||||
poetrylock = ./poetry.lock;
|
poetrylock = ./poetry.lock;
|
||||||
preferWheels = true;
|
preferWheels = true;
|
||||||
};
|
};
|
||||||
|
py = env.python;
|
||||||
|
pkg = py.pkgs.nbconvert;
|
||||||
|
isNbConvertWheel = pkg.src.isWheel;
|
||||||
in
|
in
|
||||||
runCommand "nbconvert-wheel" { } ''
|
assert isNbConvertWheel; runCommand "nbconvert-wheel" { } ''
|
||||||
${env}/bin/python -c 'import nbconvert as nbc; print(nbc.__version__)' > $out
|
${env}/bin/python -c 'import nbconvert as nbc; print(nbc.__version__)' > $out
|
||||||
|
grep -q '"${pkg}", "share", "jupyter"' "${pkg}/${py.sitePackages}/nbconvert/exporters/templateexporter.py"
|
||||||
''
|
''
|
||||||
|
|
Loading…
Add table
Reference in a new issue