2020-08-25 21:57:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, notebook
|
|
|
|
, nbdime
|
|
|
|
, git
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab_git";
|
2020-11-25 07:50:18 +00:00
|
|
|
version = "0.23.1";
|
2020-08-25 21:57:36 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-25 07:50:18 +00:00
|
|
|
sha256 = "3c709c33df0b838e50f76fa2e7e0302bd3c32ec24e161ee0e8f436a3844e8b16";
|
2020-08-25 21:57:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|