Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 718 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, isPy3k, fetchpatch 2, cairocffi, cssselect2, defusedxml, pillow, tinycss2 3, pytest, pytestrunner, pytestcov, pytest-flake8, pytest-isort }: 4 5buildPythonPackage rec { 6 pname = "CairoSVG"; 7 version = "2.3.0"; 8 9 disabled = !isPy3k; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "66f333ef5dc79fdfbd3bbe98adc791b1f854e0461067d202fa7b15de66d517ec"; 14 }; 15 16 propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ]; 17 18 checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ]; 19 20 meta = with stdenv.lib; { 21 homepage = https://cairosvg.org; 22 license = licenses.lgpl3; 23 description = "SVG converter based on Cairo"; 24 }; 25}