1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
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";
rev = "refs/tags/${version}";
hash = "sha256-V4QVZu4PSOW9poT6YUWbgTjJpIJ8YUtGDAE4Ijgm5Ac=";
};
build-system = [ setuptools-scm ];
passthru.optional-dependencies = {
table = [
flatten-dict
tabulate
];
markdown = [
tabulate
matplotlib
];
};
nativeCheckInputs = [
funcy
pytestCheckHook
pytest-mock
pytest-test-utils
] ++ passthru.optional-dependencies.table ++ passthru.optional-dependencies.markdown;
disabledTestPaths = lib.optionals stdenv.isDarwin [ "tests/test_vega.py" ];
pythonImportsCheck = [ "dvc_render" ];
meta = with lib; {
description = "Library for rendering DVC plots";
homepage = "https://github.com/iterative/dvc-render";
changelog = "https://github.com/iterative/dvc-render/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
|