2018-04-07 12:57:20 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, cairocffi, cssselect2, defusedxml, pillow, tinycss2
|
|
|
|
, pytestrunner, pytestcov, pytest-flake8, pytest-isort }:
|
2018-03-31 16:42:33 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-04-07 12:57:20 +01:00
|
|
|
pname = "CairoSVG";
|
2018-04-08 09:38:01 +01:00
|
|
|
version = "2.1.3";
|
2018-04-07 12:57:20 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2018-03-31 16:42:33 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-08 09:38:01 +01:00
|
|
|
sha256 = "e512f555f576b6462b04b585c4ba4c09a43f3a8fec907b60ead21d7d00c550e9";
|
2018-03-31 16:42:33 +01:00
|
|
|
};
|
|
|
|
|
2018-04-07 12:57:20 +01:00
|
|
|
propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestrunner pytestcov pytest-flake8 pytest-isort ];
|
2018-03-31 16:42:33 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://cairosvg.org;
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
description = "SVG converter based on Cairo";
|
|
|
|
};
|
|
|
|
}
|