python3Packages.jupyterlab-git: build from source
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
git,
|
||||
gitMinimal,
|
||||
nodejs,
|
||||
writableTmpDirAsHomeHook,
|
||||
yarn-berry_3,
|
||||
jupyter-server,
|
||||
hatch-jupyter-builder,
|
||||
hatch-nodejs-version,
|
||||
@@ -25,11 +28,21 @@ buildPythonPackage rec {
|
||||
version = "0.51.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jupyterlab";
|
||||
repo = "jupyterlab-git";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-gAE8Qx+R97D5DCsgXgb1XtnRcdIkKWxe+J+Sk4OnYJM=";
|
||||
};
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "jupyterlab_git";
|
||||
inherit version;
|
||||
hash = "sha256-t7zol5XVzojIqvDXnrepPQU1Yi+b5rAZyprk07mpymo=";
|
||||
nativeBuildInputs = [
|
||||
nodejs
|
||||
yarn-berry_3.yarnBerryConfigHook
|
||||
];
|
||||
|
||||
offlineCache = yarn-berry_3.fetchYarnBerryDeps {
|
||||
inherit src;
|
||||
hash = "sha256-r52Hj1Z2CpgH2AjeyGNuRO/WPWfdaY/e1d37jGJacBc=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
@@ -51,7 +64,7 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [ git ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
jupyterlab
|
||||
gitMinimal
|
||||
pytest-asyncio
|
||||
pytest-jupyter
|
||||
pytest-tornasync
|
||||
@@ -61,11 +74,6 @@ buildPythonPackage rec {
|
||||
|
||||
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"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
|
||||
Reference in New Issue
Block a user