python312Packages.livelossplot: refactor
This commit is contained in:
@@ -2,12 +2,11 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
pytestCheckHook,
|
||||
bokeh,
|
||||
ipython,
|
||||
matplotlib,
|
||||
numpy,
|
||||
nbconvert,
|
||||
nbformat,
|
||||
}:
|
||||
@@ -15,34 +14,35 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "livelossplot";
|
||||
version = "0.5.6";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stared";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-qC1FBFJyf2IlDIffJ5Xs89WcN/GFA/8maODhc1u2xhA=";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-qC1FBFJyf2IlDIffJ5Xs89WcN/GFA/8maODhc1u2xhA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
bokeh
|
||||
ipython
|
||||
matplotlib
|
||||
numpy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "livelossplot" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
ipython
|
||||
nbconvert
|
||||
nbformat
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
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 ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user