git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #171503 from samuela/samuela/wandb

python39Packages.wandb: 0.12.15 -> 0.12.16

commitde7bc408c6f4c8ae92a330e38bb38ecf75c9a190 authorSamuel Ainsworth <skainsworth@gmail.com> dateWed 4 May 2022, 11:35 (5 years ago) parent100ee302bca68d
1 file changed+20−12
pkgs/development/python-modules/wandb/default.nix+20−12
pkgs/development/python-modules/wandb/default.nix+20−12
@@ -12,6 +12,7 @@
1212, jsonref
1313, jsonschema
1414, matplotlib
15+, nbconvert
1516, nbformat
1617, pandas
1718, pathtools
@@ -36,7 +37,7 @@
3637
3738buildPythonPackage rec {
3839 pname = "wandb";
39− version = "0.12.15";
40+ version = "0.12.16";
4041 format = "setuptools";
4142
4243 disabled = pythonOlder "3.6";
@@ -45,7 +46,7 @@ buildPythonPackage rec {
4546 owner = pname;
4647 repo = "client";
4748 rev = "v${version}";
48− hash = "sha256-Fq+JwUEZP1QDFKYVyiR8DUU0GQV6fK50FW78qaWh+Mo=";
49+ hash = "sha256-ZY7nTj93piTEeHhW+H+nQ+ws2dDmmY6u3p7uz296PbA=";
4950 };
5051
5152 # setuptools is necessary since pkg_resources is required at runtime.
@@ -66,6 +67,20 @@ buildPythonPackage rec {
6667 shortuuid
6768 ];
6869
70+ # wandb expects git to be in PATH. See https://gist.github.com/samuela/57aeee710e41ab2bf361b7ed8fbbeabf
71+ # for the error message, and an example usage here: https://github.com/wandb/client/blob/d5f655b7ca7e3eac2f3a67a84bc5c2a664a31baf/wandb/sdk/internal/meta.py#L128.
72+ # See https://github.com/NixOS/nixpkgs/pull/164176#discussion_r828801621 as to
73+ # why we don't put it in propagatedBuildInputs. Note that this is difficult to
74+ # test offline due to https://github.com/wandb/client/issues/3519.
75+ postInstall = ''
76+ mkdir -p $out/bin
77+ ln -s ${git}/bin/git $out/bin/git
78+ '';
79+
80+ preCheck = ''
81+ export HOME=$(mktemp -d)
82+ '';
83+
6984 checkInputs = [
7085 azure-core
7186 bokeh
@@ -73,6 +88,9 @@ buildPythonPackage rec {
7388 jsonref
7489 jsonschema
7590 matplotlib
91+ # Oddly enough, nbclient does not provide the `nbclient` module. Rather it's
92+ # available in nbconvert. See https://github.com/NixOS/nixpkgs/issues/171493#issuecomment-1116960488.
93+ nbconvert
7694 nbformat
7795 pandas
7896 pydantic
@@ -83,16 +101,6 @@ buildPythonPackage rec {
83101 tqdm
84102 ];
85103
86− # wandb expects git to be in PATH. See https://gist.github.com/samuela/57aeee710e41ab2bf361b7ed8fbbeabf
87− # for the error message, and an example usage here: https://github.com/wandb/client/blob/d5f655b7ca7e3eac2f3a67a84bc5c2a664a31baf/wandb/sdk/internal/meta.py#L128.
88− # See https://github.com/NixOS/nixpkgs/pull/164176#discussion_r828801621 as to
89− # why we don't put it in propagatedBuildInputs. Note that this is difficult to
90− # test offline due to https://github.com/wandb/client/issues/3519.
91− postInstall = ''
92− mkdir -p $out/bin
93− ln -s ${git}/bin/git $out/bin/git
94− '';
95−
96104 disabledTestPaths = [
97105 # Tests that try to get chatty over sockets or spin up servers, not possible in the nix build environment.
98106 "tests/test_cli.py"