2020-08-25 22:57:36 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, notebook
|
|
|
|
, nbdime
|
|
|
|
, git
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab_git";
|
2020-10-25 04:16:45 +01:00
|
|
|
version = "0.22.2";
|
2020-08-25 22:57:36 +02:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 04:16:45 +01:00
|
|
|
sha256 = "9966a569428e67cc1688fbc2e05f51b0ceeefd8dfe30737e78a501ce3105103d";
|
2020-08-25 22:57:36 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|