python3Packages.jupyterlab-git: refactor
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
git,
|
||||
writableTmpDirAsHomeHook,
|
||||
jupyter-server,
|
||||
hatch-jupyter-builder,
|
||||
hatch-nodejs-version,
|
||||
@@ -10,12 +11,12 @@
|
||||
jupyterlab,
|
||||
nbdime,
|
||||
nbformat,
|
||||
packaging,
|
||||
pexpect,
|
||||
pytest-asyncio,
|
||||
pytest-jupyter,
|
||||
pytest-tornasync,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
traitlets,
|
||||
}:
|
||||
|
||||
@@ -24,7 +25,6 @@ buildPythonPackage rec {
|
||||
version = "0.51.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "jupyterlab_git";
|
||||
@@ -32,34 +32,33 @@ buildPythonPackage rec {
|
||||
hash = "sha256-t7zol5XVzojIqvDXnrepPQU1Yi+b5rAZyprk07mpymo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
hatch-jupyter-builder
|
||||
hatch-nodejs-version
|
||||
hatchling
|
||||
jupyterlab
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
jupyter-server
|
||||
nbdime
|
||||
git
|
||||
nbformat
|
||||
packaging
|
||||
pexpect
|
||||
traitlets
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ git ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
jupyterlab
|
||||
pytest-asyncio
|
||||
pytest-jupyter
|
||||
pytest-tornasync
|
||||
pytestCheckHook
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
"jupyterlab_git/tests/test_handlers.py"
|
||||
# PyPI doesn't ship all required files for the tests
|
||||
|
||||
Reference in New Issue
Block a user