depot/third_party/nixpkgs/pkgs/development/python-modules/cairosvg/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

44 lines
872 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, cairocffi
, cssselect2
, defusedxml
, pillow
, tinycss2
, pytestCheckHook
, pytest-runner
, pytest-flake8
, pytest-isort
}:
buildPythonPackage rec {
pname = "CairoSVG";
version = "2.5.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-sLmSnPXboAUXjXRqgDb88AJVUPSYylTbYYczIjhHg7w=";
};
buildInputs = [ pytest-runner ];
propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
checkInputs = [ pytestCheckHook pytest-flake8 pytest-isort ];
pytestFlagsArray = [
"cairosvg/test_api.py"
];
pythonImportsCheck = [ "cairosvg" ];
meta = with lib; {
homepage = "https://cairosvg.org";
license = licenses.lgpl3Plus;
description = "SVG converter based on Cairo";
maintainers = with maintainers; [ SuperSandro2000 ];
};
}