Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
# build inputs
|
|
jupyter-client,
|
|
nbformat,
|
|
nbconvert,
|
|
setuptools,
|
|
# check inputs
|
|
unittestCheckHook,
|
|
ipykernel,
|
|
}:
|
|
let
|
|
pname = "nbexec";
|
|
version = "0.2.0";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jsvine";
|
|
repo = "nbexec";
|
|
tag = "v${version}";
|
|
hash = "sha256-Vv6EHX6WlnSmzQAYlO1mHnz5t078z3RQfVfte1+X2pw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
jupyter-client
|
|
nbformat
|
|
nbconvert
|
|
];
|
|
|
|
# TODO there is a warning about debugpy_stream missing
|
|
nativeCheckInputs = [
|
|
unittestCheckHook
|
|
ipykernel
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
unittestFlagsArray = [
|
|
"-s"
|
|
"test"
|
|
"-v"
|
|
];
|
|
|
|
pythonImportsCheck = [ "nbexec" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = with lib; {
|
|
description = "Dead-simple tool for executing Jupyter notebooks from the command line";
|
|
mainProgram = "nbexec";
|
|
homepage = "https://github.com/jsvine/nbexec";
|
|
changelog = "https://github.com/jsvine/nbexec/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ happysalada ];
|
|
};
|
|
}
|