Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 53 lines 1.0 kB view raw
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.12"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "4a223909e5148c99bd18891848c7871457729322c752c9c470bd8dd6bdf9f940"; 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}