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