2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
2020-09-25 04:45:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, git
|
2023-01-20 10:41:00 +00:00
|
|
|
, jupyter-server
|
2024-01-02 11:29:13 +00:00
|
|
|
, hatch-jupyter-builder
|
|
|
|
, hatch-nodejs-version
|
|
|
|
, hatchling
|
2021-10-28 06:52:43 +00:00
|
|
|
, jupyterlab
|
|
|
|
, nbdime
|
|
|
|
, nbformat
|
|
|
|
, pexpect
|
|
|
|
, pytest-asyncio
|
2024-01-02 11:29:13 +00:00
|
|
|
, pytest-jupyter
|
2021-10-28 06:52:43 +00:00
|
|
|
, pytest-tornasync
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2024-01-02 11:29:13 +00:00
|
|
|
, traitlets
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-10-28 06:52:43 +00:00
|
|
|
pname = "jupyterlab-git";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.50.0";
|
|
|
|
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-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-CYWVRtOQE067kYqWXCw/4mBf6v4yfPYWFb592Qtb37s=";
|
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
|
|
|
|
2021-10-28 06:52:43 +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 ];
|
|
|
|
};
|
|
|
|
}
|