mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
fdd622d9c2
Signed-off-by: Austin Seipp <aseipp@pobox.com>
37 lines
915 B
Nix
37 lines
915 B
Nix
{ 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 ];
|
|
};
|
|
}
|