3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/svglib/default.nix

49 lines
990 B
Nix
Raw Normal View History

2020-08-17 02:09:19 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, cssselect2
, lxml
, pillow
, pytest
, reportlab
, tinycss2
}:
buildPythonPackage rec {
pname = "svglib";
2021-06-18 22:47:40 +01:00
version = "1.1.0";
2020-08-17 02:09:19 +01:00
src = fetchPypi {
inherit pname version;
2021-06-18 22:47:40 +01:00
sha256 = "520ee5290ee2ebeebd20ca0d7d995c08c903b364fcf515826bab43a1288d422e";
2020-08-17 02:09:19 +01:00
};
disabled = !isPy3k;
propagatedBuildInputs = [
cssselect2
lxml
pillow
reportlab
tinycss2
];
checkInputs = [
pytest
];
# Ignore tests that require network access (TestWikipediaFlags and TestW3CSVG), and tests that
# require files missing in the 1.0.0 PyPI release (TestOtherFiles).
checkPhase = ''
py.test svglib tests -k 'not TestWikipediaFlags and not TestW3CSVG and not TestOtherFiles'
'';
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 ];
};
}