summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/livelossplot/default.nix
blob: 7fb95e0b8d2ebcc23f4f481d95f47262532152a4 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
  bokeh,
  ipython,
  matplotlib,
  nbconvert,
  nbformat,
}:

buildPythonPackage rec {
  pname = "livelossplot";
  version = "0.5.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "stared";
    repo = "livelossplot";
    tag = "v${version}";
    hash = "sha256-qC1FBFJyf2IlDIffJ5Xs89WcN/GFA/8maODhc1u2xhA=";
  };

  build-system = [ setuptools ];

  dependencies = [
    bokeh
    matplotlib
  ];

  pythonImportsCheck = [ "livelossplot" ];

  nativeCheckInputs = [
    ipython
    nbconvert
    nbformat
    pytestCheckHook
  ];

  meta = {
    description = "Live training loss plot in Jupyter for Keras, PyTorch, and others";
    homepage = "https://github.com/stared/livelossplot";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ bcdarwin ];
  };
}