Unverified Commit 03caaae9 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python313Packages.nanobind: disable check phase by default (#393250)

parents 33fbbdc8 dca06b8c
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@
  tensorflow-bin,
  jax,
  jaxlib,

  nanobind,
}:
buildPythonPackage rec {
  pname = "nanobind";
@@ -49,6 +51,11 @@ buildPythonPackage rec {

  dontUseCmakeBuildDir = true;

  # nanobind check requires heavy dependencies such as tensorflow
  # which are less than ideal to be imported in children packages that
  # use it as build-system parameter.
  doCheck = false;

  preCheck = ''
    # TODO: added 2.2.0, re-enable on next bump
    # https://github.com/wjakob/nanobind/issues/754
@@ -74,6 +81,10 @@ buildPythonPackage rec {
      jaxlib
    ];

  passthru.tests = {
    pytest = nanobind.overridePythonAttrs { doCheck = true; };
  };

  meta = {
    homepage = "https://github.com/wjakob/nanobind";
    changelog = "https://github.com/wjakob/nanobind/blob/${src.tag}/docs/changelog.rst";