2021-03-06 17:58:01 -08:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, cairocffi
|
|
|
|
, cssselect2
|
|
|
|
, defusedxml
|
|
|
|
, pillow
|
|
|
|
, tinycss2
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-runner
|
|
|
|
, pytest-flake8
|
|
|
|
, pytest-isort
|
|
|
|
}:
|
2018-03-31 08:42:33 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-04-07 04:57:20 -07:00
|
|
|
pname = "CairoSVG";
|
2021-03-06 17:58:01 -08:00
|
|
|
version = "2.5.2";
|
2018-04-07 04:57:20 -07:00
|
|
|
disabled = !isPy3k;
|
2018-03-31 08:42:33 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-06 17:58:01 -08:00
|
|
|
sha256 = "sha256-sLmSnPXboAUXjXRqgDb88AJVUPSYylTbYYczIjhHg7w=";
|
2018-03-31 08:42:33 -07:00
|
|
|
};
|
|
|
|
|
2021-03-08 02:57:33 -08:00
|
|
|
nativeBuildInputs = [ pytest-runner ];
|
2021-03-06 17:58:01 -08:00
|
|
|
|
2018-04-07 04:57:20 -07:00
|
|
|
propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
|
|
|
|
|
2021-03-06 17:58:01 -08:00
|
|
|
checkInputs = [ pytestCheckHook pytest-flake8 pytest-isort ];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"cairosvg/test_api.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cairosvg" ];
|
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";
|
2021-03-06 17:58:01 -08:00
|
|
|
license = licenses.lgpl3Plus;
|
2018-03-31 08:42:33 -07:00
|
|
|
description = "SVG converter based on Cairo";
|
2021-03-06 17:58:01 -08:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-03-31 08:42:33 -07:00
|
|
|
};
|
|
|
|
}
|