From a68011ec05275d696d571631cd98e6fe09fd2ff5 Mon Sep 17 00:00:00 2001 From: Barry Moore Date: Tue, 25 Aug 2020 16:57:36 -0400 Subject: [PATCH] pythonPackages.jupyterlab-git: init at 0.20.0 --- .../python-modules/jupyterlab-git/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/jupyterlab-git/default.nix diff --git a/pkgs/development/python-modules/jupyterlab-git/default.nix b/pkgs/development/python-modules/jupyterlab-git/default.nix new file mode 100644 index 00000000000..91ae426147c --- /dev/null +++ b/pkgs/development/python-modules/jupyterlab-git/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, notebook +, nbdime +, git +, pytest +}: + +buildPythonPackage rec { + pname = "jupyterlab_git"; + version = "0.20.0"; + disabled = pythonOlder "3.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "0qs3wrcils07xlz698xr7giqf9v63n2qb338mlh7wql93rmjg45i"; + }; + + propagatedBuildInputs = [ notebook nbdime git ]; + + checkInputs = [ pytest ]; + + checkPhase = '' + pytest jupyterlab_git/ --ignore=jupyterlab_git/tests/test_handlers.py + ''; + + pythonImportsCheck = [ "jupyterlab_git" ]; + + meta = with lib; { + description = "Jupyter lab extension for version control with Git."; + license = with licenses; [ bsd3 ]; + homepage = "https://github.com/jupyterlab/jupyterlab-git"; + maintainers = with maintainers; [ chiroptical ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a47c2314cd1..1ce7dd0767e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3349,6 +3349,8 @@ in { jupyterlab = callPackage ../development/python-modules/jupyterlab {}; + jupyterlab-git = callPackage ../development/python-modules/jupyterlab-git {}; + jupyter-sphinx = callPackage ../development/python-modules/jupyter-sphinx { }; jupytext = callPackage ../development/python-modules/jupytext { };