15 buildPythonPackage rec {
21 inherit pname version;
22 hash = "sha256-++8F1+ZktLM0UvtpisGI5SJ5HzJ9405+o329/p1SysY=";
30 buildInputs = [ pytest ];
39 nativeCheckInputs = [ pytestCheckHook ];
42 # Following are broken since at least a1548780dbc79d76360580691dc1bb4af4e837f6
43 "tests/subtests/test_subtest.py"
46 # need to set MPLBACKEND=agg for headless matplotlib for darwin
47 # https://github.com/matplotlib/matplotlib/issues/26292
48 # The default tolerance is too strict in our build environment
49 # https://github.com/matplotlib/pytest-mpl/pull/9
50 # https://github.com/matplotlib/pytest-mpl/issues/225
53 substituteInPlace pytest_mpl/plugin.py \
54 --replace-fail "DEFAULT_TOLERANCE = 2" "DEFAULT_TOLERANCE = 10"
55 substituteInPlace tests/test_pytest_mpl.py \
56 --replace-fail "DEFAULT_TOLERANCE = 10 if WIN else 2" "DEFAULT_TOLERANCE = 10"
60 description = "Pytest plugin to help with testing figures output from Matplotlib";
61 homepage = "https://github.com/matplotlib/pytest-mpl";
62 license = licenses.bsd3;