mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 09:41:39 -05:00
16 lines
532 B
Nix
16 lines
532 B
Nix
{ poetry2nix, python3, runCommand }:
|
|
let
|
|
env = poetry2nix.mkPoetryEnv {
|
|
python = python3;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
preferWheels = true;
|
|
};
|
|
py = env.python;
|
|
pkg = py.pkgs.nbconvert;
|
|
isNbConvertWheel = pkg.src.isWheel;
|
|
in
|
|
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"
|
|
''
|