My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/termplotlib/default.nix

52 lines
1.1 KiB

{ lib
, substituteAll
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, exdown
, numpy
, gnuplot
}:
buildPythonPackage rec {
pname = "termplotlib";
version = "0.3.9";
src = fetchFromGitHub {
owner = "nschloe";
repo = pname;
rev = "v${version}";
sha256 = "1qfrv2w7vb2bbjvd5lqfq57c23iqkry0pwmif1ha3asmz330rja1";
};
format = "pyproject";
checkInputs = [
pytestCheckHook
exdown
];
pythonImportsCheck = [ "termplotlib" ];
propagatedBuildInputs = [ numpy ];
patches = [
(substituteAll {
src = ./gnuplot-subprocess.patch;
gnuplot = "${gnuplot.out}/bin/gnuplot";
})
];
# The current gnuplot version renders slightly different test
# graphs, with emphasis on slightly. The plots are still correct.
# Tests pass on gnuplot 5.4.1, but fail on 5.4.2.
disabledTests = [
"test_plot"
"test_nolabel"
];
meta = with lib; {
description = "matplotlib for your terminal";
homepage = "https://github.com/nschloe/termplotlib";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ thoughtpolice ];
};
}