Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python.pkgs.pygal: fix build (#53833)

`pytestrunner` is a required build input.

Also we need to explicitly set the locale to pass the tests on darwin.

authored by

Timo Kaufmann and committed by
GitHub
b54d9e27 baf62522

+19 -1
+19 -1
pkgs/development/python-modules/pygal/default.nix
··· 5 5 , flask 6 6 , pyquery 7 7 , pytest 8 + , pytestrunner 8 9 , cairosvg 9 10 , tinycss 10 11 , cssselect ··· 22 23 sha256 = "9204f05380b02a8a32f9bf99d310b51aa2a932cba5b369f7a4dc3705f0a4ce83"; 23 24 }; 24 25 25 - buildInputs = [ flask pyquery pytest ]; 26 + buildInputs = [ 27 + flask 28 + pyquery 29 + 30 + # Should be a check input, but upstream lists it under "setup_requires". 31 + # https://github.com/Kozea/pygal/issues/430 32 + pytestrunner 33 + ]; 34 + 35 + checkInputs = [ 36 + pytest 37 + ]; 38 + 39 + preCheck = '' 40 + # necessary on darwin to pass the testsuite 41 + export LANG=en_US.UTF-8 42 + ''; 43 + 26 44 propagatedBuildInputs = [ cairosvg tinycss cssselect ] 27 45 ++ stdenv.lib.optionals (!isPyPy) [ lxml ]; 28 46