2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, git
|
2023-01-20 10:41:00 +00:00
|
|
|
, jupyter-server
|
2021-10-28 06:52:43 +00:00
|
|
|
, 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";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.41.0";
|
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;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-UXZ9qgAvCKfPCzchFOtwbv8vNPEtcLU0dwBGTmiHSD4=";
|
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 = [
|
2023-01-20 10:41:00 +00:00
|
|
|
jupyter-server
|
2021-10-28 06:52:43 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|