23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
139 lines
2.2 KiB
Nix
139 lines
2.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, datasets
|
|
, dvc
|
|
, dvc-render
|
|
, dvc-studio-client
|
|
, fastai
|
|
, fetchFromGitHub
|
|
, funcy
|
|
, gto
|
|
, jsonargparse
|
|
, lightgbm
|
|
, lightning
|
|
, matplotlib
|
|
, mmcv
|
|
, numpy
|
|
, optuna
|
|
, pandas
|
|
, pillow
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, ruamel-yaml
|
|
, scikit-learn
|
|
, scmrepo
|
|
, setuptools-scm
|
|
, tabulate
|
|
, tensorflow
|
|
, torch
|
|
, transformers
|
|
, xgboost
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dvclive";
|
|
version = "3.41.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iterative";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-PbgazRK3+CoJISh1ZXGjxDfbKHY/XqSvVrkpycvPi7c=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
dvc
|
|
dvc-render
|
|
dvc-studio-client
|
|
funcy
|
|
gto
|
|
ruamel-yaml
|
|
scmrepo
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
all = [
|
|
jsonargparse
|
|
lightgbm
|
|
lightning
|
|
matplotlib
|
|
mmcv
|
|
numpy
|
|
optuna
|
|
pandas
|
|
pillow
|
|
scikit-learn
|
|
tensorflow
|
|
torch
|
|
transformers
|
|
xgboost
|
|
] ++ jsonargparse.optional-dependencies.signatures;
|
|
image = [
|
|
numpy
|
|
pillow
|
|
];
|
|
sklearn = [
|
|
scikit-learn
|
|
];
|
|
plots = [
|
|
pandas
|
|
scikit-learn
|
|
numpy
|
|
];
|
|
markdown = [
|
|
matplotlib
|
|
];
|
|
mmcv = [
|
|
mmcv
|
|
];
|
|
tf = [
|
|
tensorflow
|
|
];
|
|
xgb = [
|
|
xgboost
|
|
];
|
|
lgbm = [
|
|
lightgbm
|
|
];
|
|
huggingface = [
|
|
datasets
|
|
transformers
|
|
];
|
|
# catalyst = [
|
|
# catalyst
|
|
# ];
|
|
fastai = [
|
|
fastai
|
|
];
|
|
lightning = [
|
|
lightning
|
|
torch
|
|
jsonargparse
|
|
] ++ jsonargparse.optional-dependencies.signatures;
|
|
optuna = [
|
|
optuna
|
|
];
|
|
};
|
|
|
|
# Circular dependency with dvc
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"dvclive"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for logging machine learning metrics and other metadata in simple file formats";
|
|
homepage = "https://github.com/iterative/dvclive";
|
|
changelog = "https://github.com/iterative/dvclive/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|