biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / dvc-render / default.nix
blob749abe71e0bc84f43668d59040b6c0160e20a433
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchFromGitHub,
6   flatten-dict,
7   funcy,
8   matplotlib,
9   tabulate,
10   pytestCheckHook,
11   pytest-mock,
12   pytest-test-utils,
13   pythonOlder,
14   setuptools-scm,
17 buildPythonPackage rec {
18   pname = "dvc-render";
19   version = "1.0.2";
20   pyproject = true;
22   disabled = pythonOlder "3.8";
24   src = fetchFromGitHub {
25     owner = "iterative";
26     repo = "dvc-render";
27     rev = "refs/tags/${version}";
28     hash = "sha256-V4QVZu4PSOW9poT6YUWbgTjJpIJ8YUtGDAE4Ijgm5Ac=";
29   };
31   build-system = [ setuptools-scm ];
33   optional-dependencies = {
34     table = [
35       flatten-dict
36       tabulate
37     ];
38     markdown = [
39       tabulate
40       matplotlib
41     ];
42   };
44   nativeCheckInputs = [
45     funcy
46     pytestCheckHook
47     pytest-mock
48     pytest-test-utils
49   ] ++ optional-dependencies.table ++ optional-dependencies.markdown;
51   disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_vega.py" ];
53   pythonImportsCheck = [ "dvc_render" ];
55   meta = with lib; {
56     description = "Library for rendering DVC plots";
57     homepage = "https://github.com/iterative/dvc-render";
58     changelog = "https://github.com/iterative/dvc-render/releases/tag/${version}";
59     license = licenses.asl20;
60     maintainers = with maintainers; [ fab ];
61   };