Merge pull request #194351 from erdnaxe/wandb-fix

python3Packages.wandb: relax protobuf version
This commit is contained in:
Samuel Ainsworth 2022-10-05 11:59:51 -07:00 committed by GitHub
commit 72d2709853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"