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