1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 matplotlib,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "pytest-plt";
11 version = "1.1.1";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-TOuyVH2wKKruy7SBNW3z62yzpmBT6l6RcKhoO1XUFhE=";
17 };
18
19 postPatch = ''
20 sed -i '/addopts =/d' setup.cfg
21 '';
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 matplotlib
26 ];
27
28 meta = with lib; {
29 description = "Provides fixtures for quickly creating Matplotlib plots in your tests";
30 homepage = "https://www.nengo.ai/pytest-plt/";
31 changelog = "https://github.com/nengo/pytest-plt/blob/master/CHANGES.rst";
32 license = licenses.mit;
33 maintainers = [ maintainers.doronbehar ];
34 };
35}