git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.termplotlib: init at 0.3.4

Signed-off-by: Austin Seipp <aseipp@pobox.com>

commitfdd622d9c2a9eb4aa4b5012a25f2cb317fbafc56 authorAustin Seipp <aseipp@pobox.com> dateWed 24 Feb 2021, 14:07 (6 years ago) parenta2ae262
2 files changed+38
pkgs/development/python-modules/termplotlib/default.nix+36 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/termplotlib/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytestCheckHook
5+, exdown
6+, numpy
7+, gnuplot
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "termplotlib";
12+ version = "0.3.4";
13+
14+ src = fetchFromGitHub {
15+ owner = "nschloe";
16+ repo = pname;
17+ rev = "v${version}";
18+ sha256 = "17d2727bz6kqhxczixx6nxzz4hzyi2cssylzazjimk07syvycd6n";
19+ };
20+
21+ format = "pyproject";
22+ checkInputs = [ pytestCheckHook numpy exdown gnuplot ];
23+ pythonImportsCheck = [ "termplotlib" ];
24+
25+ # there seems to be a newline in the very front of the output
26+ # which causes the test to fail, since it apparently doesn't
27+ # strip whitespace. might be a gnuplot choice? sigh...
28+ disabledTests = [ "test_plot_lim" ];
29+
30+ meta = with lib; {
31+ description = "matplotlib for your terminal";
32+ homepage = "https://github.com/nschloe/termplotlib";
33+ license = with licenses; [ gpl3Plus ];
34+ maintainers = with maintainers; [ thoughtpolice ];
35+ };
36+}
pkgs/top-level/python-packages.nix+2
@@ -7790,6 +7790,8 @@ in {
77907790
77917791 terminaltables = callPackage ../development/python-modules/terminaltables { };
77927792
7793+ termplotlib = callPackage ../development/python-modules/termplotlib { };
7794+
77937795 termstyle = callPackage ../development/python-modules/termstyle { };
77947796
77957797 teslajsonpy = callPackage ../development/python-modules/teslajsonpy { };