summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tikzplotlib/default.nix
blob: e09c735f4c1f6d5e7ea9fdaf74ae1dceb35526b9 (about) (plain)
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
37
38
39
40
41
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  matplotlib,
  numpy,
  pillow,
  webcolors,
  flit-core,
  pytestCheckHook,
  pandas,
}:

buildPythonPackage rec {
  pname = "tikzplotlib";
  version = "0.10.1";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "nschloe";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-PLExHhEnxkEiXsE0rqvpNWwVZ+YoaDa2BTx8LktdHl0=";
  };

  propagatedBuildInputs = [
    matplotlib
    numpy
    pillow
    webcolors
    flit-core
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pandas
  ];

  meta = with lib; {
    description = "Save matplotlib figures as TikZ/PGFplots for smooth integration into LaTeX";
    homepage = "https://github.com/nschloe/tikzplotlib";
    license = licenses.mit;
    maintainers = with maintainers; [ doronbehar ];
  };
}