From f8219c956727c6fcc13d536641f13884d6cd5c6d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 16 Jul 2022 12:59:05 +0200 Subject: [PATCH] python3Packages.dvc-render: 0.0.7 -> 0.0.8 --- .../python-modules/dvc-render/default.nix | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/dvc-render/default.nix b/pkgs/development/python-modules/dvc-render/default.nix index adb19cf85029..4b4397029dac 100644 --- a/pkgs/development/python-modules/dvc-render/default.nix +++ b/pkgs/development/python-modules/dvc-render/default.nix @@ -2,17 +2,18 @@ , buildPythonPackage , fetchFromGitHub , funcy +, matplotlib +, tabulate , pytestCheckHook , pytest-mock , pytest-test-utils , pythonOlder , setuptools-scm -, tabulate }: buildPythonPackage rec { pname = "dvc-render"; - version = "0.0.7"; + version = "0.0.8"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -21,7 +22,7 @@ buildPythonPackage rec { owner = "iterative"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-QUrXUfvxQ2XZPTWXXuYBJpzFGNb8KeqpMh47WdCQu04="; + hash = "sha256-pn1dmCyDxbMgXwUj9o//X3FZ/x0jz5ZKdTcEuKkeJ1s="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; @@ -30,16 +31,24 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - funcy - tabulate - ]; + passthru.optional-dependencies = { + table = [ + tabulate + ]; + markdown = [ + tabulate + matplotlib + ]; + }; checkInputs = [ + funcy pytestCheckHook pytest-mock pytest-test-utils - ]; + ] + ++ passthru.optional-dependencies.table + ++ passthru.optional-dependencies.markdown; pythonImportsCheck = [ "dvc_render" @@ -47,7 +56,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library for rendering DVC plots"; - homepage = "https://github.com/iterative/dvclive"; + homepage = "https://github.com/iterative/dvc-render"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; };