5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
45 lines
866 B
Nix
45 lines
866 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fastcore,
|
|
fetchPypi,
|
|
ipython,
|
|
pythonOlder,
|
|
setuptools,
|
|
traitlets,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "execnb";
|
|
version = "0.1.6";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-KJ2XEHqFY0SxbAiVPWBFO0cyC0EWgGDso8wt7lBLTgU=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
fastcore
|
|
ipython
|
|
traitlets
|
|
];
|
|
|
|
# no real tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "execnb" ];
|
|
|
|
meta = with lib; {
|
|
description = "Execute a jupyter notebook, fast, without needing jupyter";
|
|
homepage = "https://github.com/fastai/execnb";
|
|
changelog = "https://github.com/fastai/execnb/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ rxiao ];
|
|
mainProgram = "exec_nb";
|
|
};
|
|
}
|