1{ stdenv, buildPythonPackage, fetchPypi, isPy3k, fetchpatch
2, cairocffi, cssselect2, defusedxml, pillow, tinycss2
3, pytest, pytestrunner, pytestcov, pytest-flake8, pytest-isort }:
4
5buildPythonPackage rec {
6 pname = "CairoSVG";
7 version = "2.4.2";
8
9 disabled = !isPy3k;
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "1bb7irxbaxxb9ahm3z5wsx1q96mm5gzskc7b6q07h9ikcnb8yrjf";
14 };
15
16 propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
17
18 checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
19
20 meta = with stdenv.lib; {
21 homepage = "https://cairosvg.org";
22 license = licenses.lgpl3;
23 description = "SVG converter based on Cairo";
24 };
25}