From 595185b2d3267e60da5e97ea120a2ca5ac98c0d2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 23 Jan 2024 10:26:12 +0100 Subject: [PATCH] python311Packages.dvclive: 3.5.1 -> 3.41.1 Diff: https://github.com/iterative/dvclive/compare/refs/tags/3.5.1...3.41.1 Changelog: https://github.com/iterative/dvclive/releases/tag/3.41.1 --- .../python-modules/dvclive/default.nix | 90 ++++++++++++++++++- 1 file changed, 87 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/dvclive/default.nix b/pkgs/development/python-modules/dvclive/default.nix index 67f70fffb3e0..f657ab37083c 100644 --- a/pkgs/development/python-modules/dvclive/default.nix +++ b/pkgs/development/python-modules/dvclive/default.nix @@ -1,21 +1,39 @@ { 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.5.1"; - format = "pyproject"; + version = "3.41.1"; + pyproject = true; disabled = pythonOlder "3.8"; @@ -23,7 +41,7 @@ buildPythonPackage rec { owner = "iterative"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-QsA8HZ6wIWKvtQ+f3nyRKKZRNJS56eZ1sKw+KNHxfXc="; + hash = "sha256-PbgazRK3+CoJISh1ZXGjxDfbKHY/XqSvVrkpycvPi7c="; }; nativeBuildInputs = [ @@ -32,12 +50,78 @@ buildPythonPackage rec { 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;