2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, cairocffi, cssselect2, defusedxml, pillow, tinycss2
|
|
|
|
, pytest, pytestrunner, pytestcov, pytest-flake8, pytest-isort }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "CairoSVG";
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "2.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-12 09:05:59 +00:00
|
|
|
sha256 = "3fc50d10f0cbef53b3ee376a97a88d81bbd9e2f190f7e63de08431a1a08e9afa";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://cairosvg.org";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
description = "SVG converter based on Cairo";
|
|
|
|
};
|
|
|
|
}
|