mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchPypi,
|
|
cssselect2,
|
|
lxml,
|
|
pillow,
|
|
pytestCheckHook,
|
|
reportlab,
|
|
tinycss2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "svglib";
|
|
version = "1.5.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
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 = with lib; {
|
|
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 = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ trepetti ];
|
|
};
|
|
}
|