mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
45 lines
887 B
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";
|
|
};
|
|
})
|