summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-plt/default.nix
blob: c1d2e34a862e775c73e4b2990d4315bef1b3917b (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  matplotlib,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pytest-plt";
  version = "1.1.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-TOuyVH2wKKruy7SBNW3z62yzpmBT6l6RcKhoO1XUFhE=";
  };

  postPatch = ''
    sed -i '/addopts =/d' setup.cfg
  '';

  nativeCheckInputs = [
    pytestCheckHook
    matplotlib
  ];

  meta = {
    description = "Provides fixtures for quickly creating Matplotlib plots in your tests";
    homepage = "https://www.nengo.ai/pytest-plt/";
    changelog = "https://github.com/nengo/pytest-plt/blob/master/CHANGES.rst";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.doronbehar ];
  };
}