From 2bca68d1be6ad681d4becdb11ac06c7b9d038cdf Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Wed, 4 May 2022 07:32:23 +0000 Subject: [PATCH] python39Packages.wandb: 0.12.15 -> 0.12.16 --- .../python-modules/wandb/default.nix | 46 +++++++++++-------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/wandb/default.nix b/pkgs/development/python-modules/wandb/default.nix index f31708baef8b..ef1e1d1198f7 100644 --- a/pkgs/development/python-modules/wandb/default.nix +++ b/pkgs/development/python-modules/wandb/default.nix @@ -12,6 +12,7 @@ , jsonref , jsonschema , matplotlib +, nbconvert , nbformat , pandas , pathtools @@ -36,7 +37,7 @@ buildPythonPackage rec { pname = "wandb"; - version = "0.12.15"; + version = "0.12.16"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -45,7 +46,7 @@ buildPythonPackage rec { owner = pname; repo = "client"; rev = "v${version}"; - hash = "sha256-Fq+JwUEZP1QDFKYVyiR8DUU0GQV6fK50FW78qaWh+Mo="; + hash = "sha256-ZY7nTj93piTEeHhW+H+nQ+ws2dDmmY6u3p7uz296PbA="; }; # setuptools is necessary since pkg_resources is required at runtime. @@ -66,23 +67,6 @@ buildPythonPackage rec { shortuuid ]; - checkInputs = [ - azure-core - bokeh - flask - jsonref - jsonschema - matplotlib - nbformat - pandas - pydantic - pytest-mock - pytest-xdist - pytestCheckHook - scikit-learn - tqdm - ]; - # wandb expects git to be in PATH. See https://gist.github.com/samuela/57aeee710e41ab2bf361b7ed8fbbeabf # for the error message, and an example usage here: https://github.com/wandb/client/blob/d5f655b7ca7e3eac2f3a67a84bc5c2a664a31baf/wandb/sdk/internal/meta.py#L128. # See https://github.com/NixOS/nixpkgs/pull/164176#discussion_r828801621 as to @@ -93,6 +77,30 @@ buildPythonPackage rec { ln -s ${git}/bin/git $out/bin/git ''; + preCheck = '' + export HOME=$(mktemp -d) + ''; + + checkInputs = [ + azure-core + bokeh + flask + jsonref + jsonschema + matplotlib + # Oddly enough, nbclient does not provide the `nbclient` module. Rather it's + # available in nbconvert. See https://github.com/NixOS/nixpkgs/issues/171493#issuecomment-1116960488. + nbconvert + nbformat + pandas + pydantic + pytest-mock + pytest-xdist + pytestCheckHook + scikit-learn + tqdm + ]; + disabledTestPaths = [ # Tests that try to get chatty over sockets or spin up servers, not possible in the nix build environment. "tests/test_cli.py"