python3Packages.wandb: disable on older Python releases
This commit is contained in:
parent
8af7727806
commit
002ab067de
|
@ -1,4 +1,6 @@
|
||||||
{ azure-core
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, azure-core
|
||||||
, bokeh
|
, bokeh
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, click
|
, click
|
||||||
|
@ -9,7 +11,6 @@
|
||||||
, GitPython
|
, GitPython
|
||||||
, jsonref
|
, jsonref
|
||||||
, jsonschema
|
, jsonschema
|
||||||
, lib
|
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, nbformat
|
, nbformat
|
||||||
, pandas
|
, pandas
|
||||||
|
@ -22,6 +23,7 @@
|
||||||
, pytest-xdist
|
, pytest-xdist
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, python-dateutil
|
, python-dateutil
|
||||||
|
, pythonOlder
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, requests
|
, requests
|
||||||
, scikit-learn
|
, scikit-learn
|
||||||
|
@ -29,13 +31,15 @@
|
||||||
, setproctitle
|
, setproctitle
|
||||||
, setuptools
|
, setuptools
|
||||||
, shortuuid
|
, shortuuid
|
||||||
, stdenv
|
|
||||||
, tqdm
|
, tqdm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "wandb";
|
pname = "wandb";
|
||||||
version = "0.12.15";
|
version = "0.12.15";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
|
@ -62,6 +66,23 @@ buildPythonPackage rec {
|
||||||
shortuuid
|
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
|
# 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.
|
# 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
|
# See https://github.com/NixOS/nixpkgs/pull/164176#discussion_r828801621 as to
|
||||||
|
@ -112,26 +133,13 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
# Disable test that fails on darwin due to issue with python3Packages.psutil:
|
# Disable test that fails on darwin due to issue with python3Packages.psutil:
|
||||||
# https://github.com/giampaolo/psutil/issues/1219
|
# https://github.com/giampaolo/psutil/issues/1219
|
||||||
disabledTests = lib.optional stdenv.isDarwin "test_tpu_system_stats";
|
disabledTests = lib.optional stdenv.isDarwin [
|
||||||
|
"test_tpu_system_stats"
|
||||||
checkInputs = [
|
|
||||||
azure-core
|
|
||||||
bokeh
|
|
||||||
flask
|
|
||||||
jsonref
|
|
||||||
jsonschema
|
|
||||||
matplotlib
|
|
||||||
nbformat
|
|
||||||
pandas
|
|
||||||
pydantic
|
|
||||||
pytest-mock
|
|
||||||
pytest-xdist
|
|
||||||
pytestCheckHook
|
|
||||||
scikit-learn
|
|
||||||
tqdm
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "wandb" ];
|
pythonImportsCheck = [
|
||||||
|
"wandb"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A CLI and library for interacting with the Weights and Biases API";
|
description = "A CLI and library for interacting with the Weights and Biases API";
|
||||||
|
|
Loading…
Reference in a new issue