Skip to content

Commit

Permalink
pythonPackages.jupyterlab-git: init at 0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chiroptical authored and jonringer committed Aug 26, 2020
1 parent 5bd2c37 commit a68011e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/jupyterlab-git/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit a68011e

Please sign in to comment.