Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a2ae262635d8
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fdd622d9c2a9
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Feb 24, 2021

  1. python3Packages.termplotlib: init at 0.3.4

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Feb 24, 2021
    Copy the full SHA
    fdd622d View commit details
Showing with 38 additions and 0 deletions.
  1. +36 −0 pkgs/development/python-modules/termplotlib/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/termplotlib/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, exdown
, numpy
, gnuplot
}:

buildPythonPackage rec {
pname = "termplotlib";
version = "0.3.4";

src = fetchFromGitHub {
owner = "nschloe";
repo = pname;
rev = "v${version}";
sha256 = "17d2727bz6kqhxczixx6nxzz4hzyi2cssylzazjimk07syvycd6n";
};

format = "pyproject";
checkInputs = [ pytestCheckHook numpy exdown gnuplot ];
pythonImportsCheck = [ "termplotlib" ];

# there seems to be a newline in the very front of the output
# which causes the test to fail, since it apparently doesn't
# strip whitespace. might be a gnuplot choice? sigh...
disabledTests = [ "test_plot_lim" ];

meta = with lib; {
description = "matplotlib for your terminal";
homepage = "https://github.com/nschloe/termplotlib";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ thoughtpolice ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -7790,6 +7790,8 @@ in {

terminaltables = callPackage ../development/python-modules/terminaltables { };

termplotlib = callPackage ../development/python-modules/termplotlib { };

termstyle = callPackage ../development/python-modules/termstyle { };

teslajsonpy = callPackage ../development/python-modules/teslajsonpy { };