diff options
Diffstat (limited to 'pkgs/development/python-modules/nbexec/default.nix')
-rw-r--r-- | pkgs/development/python-modules/nbexec/default.nix | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/nbexec/default.nix b/pkgs/development/python-modules/nbexec/default.nix index faed2eedb471..370de0db428c 100644 --- a/pkgs/development/python-modules/nbexec/default.nix +++ b/pkgs/development/python-modules/nbexec/default.nix @@ -1,14 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -# build inputs -, jupyter-client -, nbformat -, nbconvert -# check inputs -, unittestCheckHook -, ipykernel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + # build inputs + jupyter-client, + nbformat, + nbconvert, + setuptools, + # check inputs + unittestCheckHook, + ipykernel, }: let pname = "nbexec"; @@ -16,7 +18,7 @@ let in buildPythonPackage { inherit pname version; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.9"; @@ -27,7 +29,9 @@ buildPythonPackage { hash = "sha256-Vv6EHX6WlnSmzQAYlO1mHnz5t078z3RQfVfte1+X2pw="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ jupyter-client nbformat nbconvert @@ -44,15 +48,17 @@ buildPythonPackage { ''; unittestFlagsArray = [ - "-s" "test" "-v" + "-s" + "test" + "-v" ]; - pythonImportsCheck = [ - "nbexec" - ]; + pythonImportsCheck = [ "nbexec" ]; + + __darwinAllowLocalNetworking = true; meta = with lib; { - description = "A dead-simple tool for executing Jupyter notebooks from the command line."; + 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}"; |