2018-12-05 03:21:43 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, fetchpatch
|
2018-04-07 12:57:20 +01:00
|
|
|
, cairocffi, cssselect2, defusedxml, pillow, tinycss2
|
2019-03-13 22:27:46 +00:00
|
|
|
, pytest, 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";
|
2019-09-14 15:35:19 +01:00
|
|
|
version = "2.4.2";
|
2018-04-07 12:57:20 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2018-03-31 16:42:33 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-14 15:35:19 +01:00
|
|
|
sha256 = "1bb7irxbaxxb9ahm3z5wsx1q96mm5gzskc7b6q07h9ikcnb8yrjf";
|
2018-03-31 16:42:33 +01:00
|
|
|
};
|
|
|
|
|
2018-04-07 12:57:20 +01: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 16:42:33 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://cairosvg.org";
|
2018-03-31 16:42:33 +01:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
description = "SVG converter based on Cairo";
|
|
|
|
};
|
|
|
|
}
|