diff --git a/pkgs/development/python-modules/livelossplot/default.nix b/pkgs/development/python-modules/livelossplot/default.nix index a329967b2a51..80ef631363e9 100644 --- a/pkgs/development/python-modules/livelossplot/default.nix +++ b/pkgs/development/python-modules/livelossplot/default.nix @@ -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 ]; }; }