diff --git a/pkgs/development/python-modules/plotext/default.nix b/pkgs/development/python-modules/plotext/default.nix new file mode 100644 index 000000000000..8c6d0b39985c --- /dev/null +++ b/pkgs/development/python-modules/plotext/default.nix @@ -0,0 +1,30 @@ +{ buildPythonPackage +, fetchFromGitHub +, lib +}: + +buildPythonPackage rec { + pname = "plotext"; + version = "5.2.8"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "piccolomo"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-V7N7p5RxLKYLmJeojikYJ/tT/IpVGzG3ZPVvUisDAVs="; + }; + + # Package does not have a conventional test suite that can be run with either + # `pytestCheckHook` or the standard setuptools testing situation. + doCheck = false; + + pythonImportsCheck = [ "plotext" ]; + + meta = with lib; { + description = "Plotting directly in the terminal"; + homepage = "https://github.com/piccolomo/plotext"; + license = licenses.mit; + maintainers = with maintainers; [ samuela ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6af64e445511..304ca34e7796 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7143,6 +7143,8 @@ self: super: with self; { plone-testing = callPackage ../development/python-modules/plone-testing { }; + plotext = callPackage ../development/python-modules/plotext { }; + plotly = callPackage ../development/python-modules/plotly { }; plotnine = callPackage ../development/python-modules/plotnine { };