diff --git a/pkgs/development/python-modules/wandb/default.nix b/pkgs/development/python-modules/wandb/default.nix index a466c9919f43..b1ad380f04b9 100644 --- a/pkgs/development/python-modules/wandb/default.nix +++ b/pkgs/development/python-modules/wandb/default.nix @@ -25,6 +25,7 @@ , pytestCheckHook , python-dateutil , pythonOlder +, pythonRelaxDepsHook , torch , pyyaml , requests @@ -52,12 +53,17 @@ buildPythonPackage rec { }; patches = [ + # Replace git paths (substituteAll { src = ./hardcode-git-path.patch; git = "${lib.getBin git}/bin/git"; }) ]; + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + # setuptools is necessary since pkg_resources is required at runtime. propagatedBuildInputs = [ click @@ -76,10 +82,6 @@ buildPythonPackage rec { shortuuid ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - checkInputs = [ azure-core bokeh @@ -99,6 +101,12 @@ buildPythonPackage rec { tqdm ]; + preCheck = '' + export HOME=$(mktemp -d) + ''; + + pythonRelaxDeps = [ "protobuf" ]; + disabledTestPaths = [ # Tests that try to get chatty over sockets or spin up servers, not possible in the nix build environment. "tests/unit_tests/integrations/test_keras.py"