blob: adccc99ac2febd6d205a35e02c0d94a915439fdd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 ];
};
}
|