about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dvc-render/default.nix
blob: 461cab639279689796374d8bf3b5b105a4772219 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, funcy
, pytestCheckHook
, pytest-mock
, pytest-test-utils
, pythonOlder
, tabulate
}:

buildPythonPackage rec {
  pname = "dvc-render";
  version = "0.0.5";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "iterative";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-dL+ampYgcC77G89rnh7t6lVp7WoIR85gjP0eg89ci3g=";
  };

  propagatedBuildInputs = [
    funcy
    tabulate
  ];

  checkInputs = [
    pytestCheckHook
    pytest-mock
    pytest-test-utils
  ];

  pythonImportsCheck = [
    "dvc_render"
  ];

  meta = with lib; {
    description = "Library for rendering DVC plots";
    homepage = "https://github.com/iterative/dvclive";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}