2018-12-05 04:21:43 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, fetchpatch
|
2018-04-07 13:57:20 +02:00
|
|
|
, cairocffi, cssselect2, defusedxml, pillow, tinycss2
|
2019-03-13 23:27:46 +01:00
|
|
|
, pytest, pytestrunner, pytestcov, pytest-flake8, pytest-isort }:
|
2018-03-31 17:42:33 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-04-07 13:57:20 +02:00
|
|
|
pname = "CairoSVG";
|
2019-03-13 23:27:46 +01:00
|
|
|
version = "2.3.0";
|
2018-04-07 13:57:20 +02:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2018-03-31 17:42:33 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-03-13 23:27:46 +01:00
|
|
|
sha256 = "66f333ef5dc79fdfbd3bbe98adc791b1f854e0461067d202fa7b15de66d517ec";
|
2018-03-31 17:42:33 +02:00
|
|
|
};
|
|
|
|
|
2018-04-07 13:57:20 +02:00
|
|
|
propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
|
|
|
|
|
2019-03-13 23:27:46 +01:00
|
|
|
checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
|
2018-03-31 17:42:33 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://cairosvg.org;
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
description = "SVG converter based on Cairo";
|
|
|
|
};
|
|
|
|
}
|