diff --git a/pkgs/development/python-modules/dvc-render/default.nix b/pkgs/development/python-modules/dvc-render/default.nix new file mode 100644 index 000000000000..461cab639279 --- /dev/null +++ b/pkgs/development/python-modules/dvc-render/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, funcy +, pytestCheckHook +, pytest-mock +, pytest-test-utils +, pythonOlder +, tabulate +}: + +buildPythonPackage rec { + pname = "dvc-render"; + version = "0.0.5"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "iterative"; + repo = pname; + rev = "v${version}"; + hash = "sha256-dL+ampYgcC77G89rnh7t6lVp7WoIR85gjP0eg89ci3g="; + }; + + propagatedBuildInputs = [ + funcy + tabulate + ]; + + checkInputs = [ + pytestCheckHook + pytest-mock + pytest-test-utils + ]; + + pythonImportsCheck = [ + "dvc_render" + ]; + + meta = with lib; { + description = "Library for rendering DVC plots"; + homepage = "https://github.com/iterative/dvclive"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 61736ee55a83..4804ef682300 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2594,6 +2594,8 @@ in { durus = callPackage ../development/python-modules/durus { }; + dvc-render = callPackage ../development/python-modules/dvc-render { }; + dwdwfsapi = callPackage ../development/python-modules/dwdwfsapi { }; dyn = callPackage ../development/python-modules/dyn { };