1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, matplotlib 6, nose 7, pillow 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-mpl"; 13 version = "0.13"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "582db6e14315f9b08cbd2df39b136dc344bfe8a27c2f05b995460fb0969ec19e"; 18 }; 19 20 buildInputs = [ 21 pytest 22 ]; 23 24 propagatedBuildInputs = [ 25 matplotlib 26 nose 27 pillow 28 ]; 29 30 checkInputs = [ 31 pytestCheckHook 32 ]; 33 34 # Broken since b6e98f18950c2b5dbdc725c1181df2ad1be19fee 35 disabledTests = [ 36 "test_hash_fails" 37 "test_hash_missing" 38 ]; 39 40 preCheck = '' 41 export HOME=$(mktemp -d) 42 mkdir -p $HOME/.config/matplotlib 43 echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc 44 ln -s $HOME/.config/matplotlib $HOME/.matplotlib 45 ''; 46 47 meta = with lib; { 48 description = "Pytest plugin to help with testing figures output from Matplotlib"; 49 homepage = "https://github.com/matplotlib/pytest-mpl"; 50 license = licenses.bsd3; 51 maintainers = [ maintainers.costrouc ]; 52 }; 53}