1 { lib, buildPythonPackage, fetchFromGitHub, cairocffi, nose, fontconfig
2 , cssselect2, defusedxml, pillow, tinycss2 }:
4 # CairoSVG 2.x dropped support for Python 2 so offer CairoSVG 1.x as an
6 buildPythonPackage rec {
10 # PyPI doesn't include tests so use GitHub
11 src = fetchFromGitHub {
15 sha256 = "15z0cag5s79ghhrlgs5xc9ayvzzdr3v8151vf6k819f1drsfjfxl";
18 propagatedBuildInputs = [ cairocffi ];
20 checkInputs = [ nose fontconfig cssselect2 defusedxml pillow tinycss2 ];
22 # Almost all tests just fail. Not sure how to fix them.
25 # checkInputs = [ nose fontconfig cssselect2 defusedxml pillow tinycss2 ];
28 # FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf nosetests .
32 homepage = "https://cairosvg.org";
33 license = licenses.lgpl3;
34 description = "SVG converter based on Cairo";
35 maintainers = with maintainers; [ jluttine ];