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
|
||||
, buildPythonPackage
|
||||
, click
|
||||
|
@ -9,7 +11,6 @@
|
|||
, GitPython
|
||||
, jsonref
|
||||
, jsonschema
|
||||
, lib
|
||||
, matplotlib
|
||||
, nbformat
|
||||
, pandas
|
||||
|
@ -22,6 +23,7 @@
|
|||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, python-dateutil
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, requests
|
||||
, scikit-learn
|
||||
|
@ -29,13 +31,15 @@
|
|||
, setproctitle
|
||||
, setuptools
|
||||
, shortuuid
|
||||
, stdenv
|
||||
, tqdm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "wandb";
|
||||
version = "0.12.15";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
|
@ -62,6 +66,23 @@ 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
|
||||
|
@ -112,26 +133,13 @@ buildPythonPackage rec {
|
|||
|
||||
# Disable test that fails on darwin due to issue with python3Packages.psutil:
|
||||
# https://github.com/giampaolo/psutil/issues/1219
|
||||
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
|
||||
disabledTests = lib.optional stdenv.isDarwin [
|
||||
"test_tpu_system_stats"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "wandb" ];
|
||||
pythonImportsCheck = [
|
||||
"wandb"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A CLI and library for interacting with the Weights and Biases API";
|
||||
|
|
Loading…
Reference in a new issue