2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
git,
|
|
|
|
jupyter-server,
|
|
|
|
hatch-jupyter-builder,
|
|
|
|
hatch-nodejs-version,
|
|
|
|
hatchling,
|
|
|
|
jupyterlab,
|
|
|
|
nbdime,
|
|
|
|
nbformat,
|
|
|
|
pexpect,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-jupyter,
|
|
|
|
pytest-tornasync,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
traitlets,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-10-28 06:52:43 +00:00
|
|
|
pname = "jupyterlab-git";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.50.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-10-28 06:52:43 +00:00
|
|
|
pname = "jupyterlab_git";
|
|
|
|
inherit version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-v08Go/vCsquE6l1SMmqg4LjM9OmjNX+jGKEZVg4cak0=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
nativeBuildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
hatch-jupyter-builder
|
|
|
|
hatch-nodejs-version
|
|
|
|
hatchling
|
|
|
|
jupyterlab
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
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
|
2024-01-02 11:29:13 +00:00
|
|
|
traitlets
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-28 06:52:43 +00:00
|
|
|
jupyterlab
|
|
|
|
pytest-asyncio
|
2024-01-02 11:29:13 +00:00
|
|
|
pytest-jupyter
|
2021-10-28 06:52:43 +00:00
|
|
|
pytest-tornasync
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
2020-11-30 08:33:03 +00:00
|
|
|
|
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
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "jupyterlab_git" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
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";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/jupyterlab/jupyterlab-git/blob/v${version}/CHANGELOG.md";
|
2021-10-28 06:52:43 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ chiroptical ];
|
|
|
|
};
|
|
|
|
}
|