2020-11-25 12:46:37 +00:00
|
|
|
{ stdenv
|
2020-08-25 21:57:36 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, notebook
|
|
|
|
, nbdime
|
|
|
|
, git
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab_git";
|
2020-11-30 00:53:15 +00:00
|
|
|
version = "0.23.2";
|
2020-08-25 21:57:36 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-30 00:53:15 +00:00
|
|
|
sha256 = "2c4c55c5bc651a670b13e89064f7aba7422b72ad6b3f2b3890ac72cc9a2d4089";
|
2020-08-25 21:57:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ notebook nbdime git ];
|
|
|
|
|
2020-11-25 12:46:37 +00:00
|
|
|
# all Tests on darwin fail or are skipped due to sandbox
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2020-08-25 21:57:36 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest jupyterlab_git/ --ignore=jupyterlab_git/tests/test_handlers.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "jupyterlab_git" ];
|
|
|
|
|
2020-11-25 12:46:37 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-08-25 21:57:36 +01:00
|
|
|
description = "Jupyter lab extension for version control with Git.";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
homepage = "https://github.com/jupyterlab/jupyterlab-git";
|
|
|
|
maintainers = with maintainers; [ chiroptical ];
|
|
|
|
};
|
|
|
|
}
|