16 buildPythonPackage rec {
20 doCheck = !isPyPy; # one check fails with pypy
23 inherit pname version;
24 sha256 = "9204f05380b02a8a32f9bf99d310b51aa2a932cba5b369f7a4dc3705f0a4ce83";
27 # Fixes compatibility with latest pytest. October 12, 2020.
28 # Should be included in the next release after 2.4.0
30 url = "https://github.com/Kozea/pygal/commit/19e5399be18a054b3b293f4a8a2777d2df4f9c18.patch";
31 sha256 = "1j0hpcvd2mhi449wmlr0ml9gw4cakqk3av1j79bi2qy86dyrss2l";
39 # Should be a check input, but upstream lists it under "setup_requires".
40 # https://github.com/Kozea/pygal/issues/430
49 # necessary on darwin to pass the testsuite
50 export LANG=en_US.UTF-8
54 substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
57 propagatedBuildInputs = [ cairosvg tinycss cssselect ]
58 ++ lib.optionals (!isPyPy) [ lxml ];
61 description = "Sexy and simple python charting";
62 homepage = "http://www.pygal.org";
63 license = licenses.lgpl3Plus;
64 maintainers = with maintainers; [ sjourdois ];