Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 51 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 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 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-Oudl06lAnuYMD7TSTC3raoBheqknBU9bzX/JjwaV5Yc="; 21 }; 22 23 propagatedBuildInputs = [ 24 cssselect2 25 lxml 26 pillow 27 reportlab 28 tinycss2 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 disabledTests = [ 34 # Ignore tests that require network access (TestWikipediaFlags and TestW3CSVG), and tests that 35 # require files missing in the 1.0.0 PyPI release (TestOtherFiles). 36 "TestWikipediaFlags" 37 "TestW3CSVG" 38 "TestOtherFiles" 39 ]; 40 41 pythonImportsCheck = [ "svglib.svglib" ]; 42 43 meta = { 44 description = "Pure-Python library for reading and converting SVG"; 45 mainProgram = "svg2pdf"; 46 homepage = "https://github.com/deeplook/svglib"; 47 changelog = "https://github.com/deeplook/svglib/blob/v${version}/CHANGELOG.rst"; 48 license = lib.licenses.lgpl3Only; 49 maintainers = with lib.maintainers; [ trepetti ]; 50 }; 51}