2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
2023-03-04 12:14:45 +00:00
|
|
|
, stdenv
|
2022-06-16 17:23:12 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-05-24 13:37:59 +00:00
|
|
|
, flatten-dict
|
2022-06-16 17:23:12 +00:00
|
|
|
, funcy
|
2022-08-12 12:06:08 +00:00
|
|
|
, matplotlib
|
|
|
|
, tabulate
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-test-utils
|
|
|
|
, pythonOlder
|
2022-07-14 12:49:19 +00:00
|
|
|
, setuptools-scm
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-render";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.5.3";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-4nqImAYk4pYXSuE2/znzwjtf0349bydqi4iN69wG080=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
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
|
2022-08-12 12:06:08 +00:00
|
|
|
]
|
|
|
|
++ passthru.optional-dependencies.table
|
|
|
|
++ passthru.optional-dependencies.markdown;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabledTestPaths = lib.optionals stdenv.isDarwin [
|
|
|
|
"tests/test_vega.py"
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"dvc_render"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|