at 23.11-beta 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, cssselect2 6, lxml 7, pillow 8, pytestCheckHook 9, reportlab 10, tinycss2 11}: 12 13buildPythonPackage rec { 14 pname = "svglib"; 15 version = "1.5.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-Oudl06lAnuYMD7TSTC3raoBheqknBU9bzX/JjwaV5Yc="; 23 }; 24 25 propagatedBuildInputs = [ 26 cssselect2 27 lxml 28 pillow 29 reportlab 30 tinycss2 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 disabledTests = [ 38 # Ignore tests that require network access (TestWikipediaFlags and TestW3CSVG), and tests that 39 # require files missing in the 1.0.0 PyPI release (TestOtherFiles). 40 "TestWikipediaFlags" 41 "TestW3CSVG" 42 "TestOtherFiles" 43 ]; 44 45 pythonImportsCheck = [ 46 "svglib.svglib" 47 ]; 48 49 meta = with lib; { 50 description = "A pure-Python library for reading and converting SVG"; 51 homepage = "https://github.com/deeplook/svglib"; 52 changelog = "https://github.com/deeplook/svglib/blob/v${version}/CHANGELOG.rst"; 53 license = licenses.lgpl3Only; 54 maintainers = with maintainers; [ trepetti ]; 55 }; 56}