Files
nixpkgs/pkgs/development/python-modules/dvc-render/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

65 lines
1.2 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
flatten-dict,
funcy,
matplotlib,
tabulate,
pytestCheckHook,
pytest-mock,
pytest-test-utils,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "dvc-render";
version = "1.0.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "iterative";
repo = "dvc-render";
tag = version;
hash = "sha256-V4QVZu4PSOW9poT6YUWbgTjJpIJ8YUtGDAE4Ijgm5Ac=";
};
build-system = [ setuptools-scm ];
optional-dependencies = {
table = [
flatten-dict
tabulate
];
markdown = [
tabulate
matplotlib
];
};
nativeCheckInputs = [
funcy
pytestCheckHook
pytest-mock
pytest-test-utils
]
++ optional-dependencies.table
++ optional-dependencies.markdown;
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_vega.py" ];
pythonImportsCheck = [ "dvc_render" ];
meta = {
description = "Library for rendering DVC plots";
homepage = "https://github.com/iterative/dvc-render";
changelog = "https://github.com/iterative/dvc-render/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}