2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, fetchpatch
|
2018-04-07 11:57:20 +00:00
|
|
|
, cairocffi, cssselect2, defusedxml, pillow, tinycss2
|
2019-03-13 22:27:46 +00:00
|
|
|
, pytest, pytestrunner, pytestcov, pytest-flake8, pytest-isort }:
|
2018-03-31 15:42:33 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-04-07 11:57:20 +00:00
|
|
|
pname = "CairoSVG";
|
2021-02-20 09:09:07 +00:00
|
|
|
version = "2.5.1";
|
2018-04-07 11:57:20 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2018-03-31 15:42:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:07 +00:00
|
|
|
sha256 = "bfa0deea7fa0b9b2f29e41b747a915c249dbca731a4667c2917e47ff96e773e0";
|
2018-03-31 15:42:33 +00:00
|
|
|
};
|
|
|
|
|
2018-04-07 11:57:20 +00:00
|
|
|
propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
|
|
|
|
|
2019-03-13 22:27:46 +00:00
|
|
|
checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
|
2018-03-31 15:42:33 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://cairosvg.org";
|
2018-03-31 15:42:33 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
description = "SVG converter based on Cairo";
|
|
|
|
};
|
|
|
|
}
|