Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 36 lines 915 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, exdown 6, numpy 7, gnuplot 8}: 9 10buildPythonPackage 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}