2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-08-25 21:57:36 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, notebook
|
|
|
|
, nbdime
|
|
|
|
, git
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab_git";
|
2020-12-25 13:42:43 +00:00
|
|
|
version = "0.23.3";
|
2020-08-25 21:57:36 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-25 13:42:43 +00:00
|
|
|
sha256 = "20a4954d8d1b1eb6f9111cd15d6a598bd7ff72b08797cf5e86c5a55827c85a1d";
|
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" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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 ];
|
|
|
|
};
|
|
|
|
}
|