1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, matplotlib
5, numpy
6, pillow
7, webcolors
8, flit-core
9, pytestCheckHook
10, pandas
11}:
12
13buildPythonPackage rec {
14 pname = "tikzplotlib";
15 version = "0.10.1";
16 format = "pyproject";
17
18 src = fetchFromGitHub {
19 owner = "nschloe";
20 repo = pname;
21 rev = "v${version}";
22 hash = "sha256-PLExHhEnxkEiXsE0rqvpNWwVZ+YoaDa2BTx8LktdHl0=";
23 };
24
25 propagatedBuildInputs = [
26 matplotlib
27 numpy
28 pillow
29 webcolors
30 flit-core
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 pandas
36 ];
37
38 meta = with lib; {
39 description = "Save matplotlib figures as TikZ/PGFplots for smooth integration into LaTeX";
40 homepage = "https://github.com/nschloe/tikzplotlib";
41 license = licenses.mit;
42 maintainers = with maintainers; [ doronbehar ];
43 };
44}