depot/third_party/nixpkgs/pkgs/development/python-modules/livelossplot/default.nix
Default email 4fc29cb41f Project import generated by Copybara.
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
2020-05-29 08:06:01 +02:00

40 lines
840 B
Nix

{ stdenv
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pytest
, bokeh
, ipython
, matplotlib
, numpy
, nbconvert
, nbformat
}:
buildPythonPackage rec {
pname = "livelossplot";
version = "0.5.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "stared";
repo = pname;
rev = "v${version}";
sha256 = "164v65qglgyg38q9ajnas99rp14mvrk5hn8x76b8iy81vszmx1c0";
};
propagatedBuildInputs = [ bokeh ipython matplotlib numpy ];
checkInputs = [ pytest nbconvert nbformat ];
checkPhase = ''
pytest tests tests/external_test_examples.py
'';
meta = with stdenv.lib; {
description = "Live training loss plot in Jupyter for Keras, PyTorch, and others";
homepage = "https://github.com/stared/livelossplot";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}