nixpkgs-suyu/pkgs/development/python-modules/termplotlib/default.nix
2021-06-22 13:42:50 +02:00

36 lines
915 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, exdown
, numpy
, gnuplot
}:
buildPythonPackage rec {
pname = "termplotlib";
version = "0.3.5";
src = fetchFromGitHub {
owner = "nschloe";
repo = pname;
rev = "v${version}";
sha256 = "1z6bw6lkbrgjyq3ndsx20gwpai4scm1q9rjh4rdz0rvja4jdcv3z";
};
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 ];
};
}