Files
nixpkgs/pkgs/development/python-modules/execnb/default.nix

45 lines
887 B
Nix

{
lib,
buildPythonPackage,
fastcore,
fetchPypi,
ipython,
setuptools,
traitlets,
}:
buildPythonPackage (finalAttrs: {
pname = "execnb";
version = "0.3.2";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-cj0By2OIwRKtDroUJGN8EFrS++2Vx4m6/3IWB4+uQdo=";
};
pythonRelaxDeps = [ "fastcore" ];
build-system = [ setuptools ];
dependencies = [
fastcore
ipython
traitlets
];
# no real tests
doCheck = false;
pythonImportsCheck = [ "execnb" ];
meta = {
description = "Execute a jupyter notebook, fast, without needing jupyter";
homepage = "https://github.com/fastai/execnb";
changelog = "https://github.com/fastai/execnb/releases/tag/${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ rxiao ];
mainProgram = "exec_nb";
};
})