python310Packages.nbexec: init at 0.2.0

This commit is contained in:
happysalada
2023-07-10 15:21:16 +08:00
committed by Yt
parent 7e5faf7e4e
commit dc8c60ecb1
2 changed files with 63 additions and 0 deletions
@@ -0,0 +1,61 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build inputs
, jupyter-client
, nbformat
, nbconvert
# check inputs
, unittestCheckHook
, ipykernel
}:
let
pname = "nbexec";
version = "0.2.0";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jsvine";
repo = "nbexec";
rev = "refs/tags/v${version}";
hash = "sha256-Vv6EHX6WlnSmzQAYlO1mHnz5t078z3RQfVfte1+X2pw=";
};
propagatedBuildInputs = [
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"
];
meta = with lib; {
description = "A dead-simple tool for executing Jupyter notebooks from the command line.";
homepage = "https://github.com/jsvine/nbexec";
changelog = "https://github.com/jsvine/nbexec/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ happysalada ];
};
}
+2
View File
@@ -6770,6 +6770,8 @@ self: super: with self; {
nbdime = callPackage ../development/python-modules/nbdime { };
nbexec = callPackage ../development/python-modules/nbexec { };
nbformat = callPackage ../development/python-modules/nbformat { };
nbmerge = callPackage ../development/python-modules/nbmerge { };