3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, cssselect2
|
|
, lxml
|
|
, pillow
|
|
, pytestCheckHook
|
|
, reportlab
|
|
, tinycss2
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "svglib";
|
|
version = "1.3.0";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-o4mYuV0buZVk3J3/rxXk6UU3YfJ5DS3UFHpK1fusEHg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cssselect2
|
|
lxml
|
|
pillow
|
|
reportlab
|
|
tinycss2
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
# Ignore tests that require network access (TestWikipediaFlags and TestW3CSVG), and tests that
|
|
# require files missing in the 1.0.0 PyPI release (TestOtherFiles).
|
|
pytestFlagsArray = [
|
|
"-k 'not TestWikipediaFlags and not TestW3CSVG and not TestOtherFiles'"
|
|
];
|
|
|
|
pythonImportsCheck = [ "svglib.svglib" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/deeplook/svglib";
|
|
description = "A pure-Python library for reading and converting SVG";
|
|
license = licenses.lgpl3;
|
|
maintainers = with maintainers; [ trepetti ];
|
|
};
|
|
}
|