2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, git
|
2021-10-28 06:52:43 +00:00
|
|
|
, jupyter_server
|
|
|
|
, jupyter-packaging
|
|
|
|
, jupyterlab
|
|
|
|
, nbdime
|
|
|
|
, nbformat
|
|
|
|
, pexpect
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-tornasync
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-10-28 06:52:43 +00:00
|
|
|
pname = "jupyterlab-git";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.37.1";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-10-28 06:52:43 +00:00
|
|
|
pname = "jupyterlab_git";
|
|
|
|
inherit version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-vOM2y8XrjmKtVtI6h4/DUrHzSLJuZXIm0C7//gMh+5o=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
jupyter-packaging
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jupyter_server
|
|
|
|
nbdime
|
|
|
|
git
|
|
|
|
nbformat
|
|
|
|
pexpect
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
jupyterlab
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-tornasync
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# All Tests on darwin fail or are skipped due to sandbox
|
2020-11-30 08:33:03 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"jupyterlab_git/tests/test_handlers.py"
|
|
|
|
# PyPI doesn't ship all required files for the tests
|
|
|
|
"jupyterlab_git/tests/test_config.py"
|
|
|
|
"jupyterlab_git/tests/test_integrations.py"
|
|
|
|
"jupyterlab_git/tests/test_remote.py"
|
|
|
|
"jupyterlab_git/tests/test_settings.py"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_Git_get_nbdiff_file"
|
|
|
|
"test_Git_get_nbdiff_dict"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jupyterlab_git"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-10-28 06:52:43 +00:00
|
|
|
description = "Jupyter lab extension for version control with Git";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/jupyterlab/jupyterlab-git";
|
2021-10-28 06:52:43 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ chiroptical ];
|
|
|
|
};
|
|
|
|
}
|