2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flatten-dict,
|
|
|
|
funcy,
|
|
|
|
matplotlib,
|
|
|
|
tabulate,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-mock,
|
|
|
|
pytest-test-utils,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-render";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.0.2";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "dvc-render";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-V4QVZu4PSOW9poT6YUWbgTjJpIJ8YUtGDAE4Ijgm5Ac=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
table = [
|
2023-05-24 13:37:59 +00:00
|
|
|
flatten-dict
|
2022-08-12 12:06:08 +00:00
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
markdown = [
|
|
|
|
tabulate
|
|
|
|
matplotlib
|
|
|
|
];
|
|
|
|
};
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
funcy
|
2022-06-16 17:23:12 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
pytest-test-utils
|
2024-04-21 15:54:59 +00:00
|
|
|
] ++ passthru.optional-dependencies.table ++ passthru.optional-dependencies.markdown;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTestPaths = lib.optionals stdenv.isDarwin [ "tests/test_vega.py" ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "dvc_render" ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for rendering DVC plots";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/iterative/dvc-render";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/iterative/dvc-render/releases/tag/${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.asl20;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|