Files
nixpkgs/pkgs/development/python-modules/execnb/default.nix
2025-12-22 17:47:12 +00:00

46 lines
865 B
Nix

{
lib,
buildPythonPackage,
fastcore,
fetchPypi,
ipython,
pythonOlder,
setuptools,
traitlets,
}:
buildPythonPackage rec {
pname = "execnb";
version = "0.1.16";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-ZsnACca6Awv9DA9qce5NhWodjvxDBv6ajBU3DAZFAAw=";
};
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/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ rxiao ];
mainProgram = "exec_nb";
};
}