Unverified Commit 4eba10d3 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.notebook: cleanup (#402654)

parents 43408348 4b4b12ab
Loading
Loading
Loading
Loading
+18 −6
Original line number Diff line number Diff line
@@ -3,16 +3,24 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

  # nativeBuildInputs
  nodejs,
  yarn-berry_3,
  distutils,

  # build-system
  hatch-jupyter-builder,
  hatchling,
  jupyter-server,
  jupyterlab,

  # dependencies
  jupyter-server,
  jupyterlab-server,
  notebook-shim,
  tornado,

  # tests
  pytest-jupyter,
  pytestCheckHook,
}:
@@ -31,13 +39,17 @@ buildPythonPackage rec {

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "timeout = 300" ""
      --replace-fail "timeout = 300" ""
  '';

  nativeBuildInputs = [
  nativeBuildInputs =
    [
      nodejs
      yarn-berry_3.yarnBerryConfigHook
  ] ++ lib.optional (stdenv.hostPlatform.system == "aarch64-linux") distutils;
    ]
    ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
      distutils
    ];

  missingHashes = ./missing-hashes.json;