depot/third_party/nixpkgs/pkgs/development/python-modules/svgwrite/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
762 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "svgwrite";
version = "1.4.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "mozman";
repo = "svgwrite";
rev = "v${version}";
hash = "sha256-uOsrDhE9AwWU7GIrCVuL3uXTPqtrh8sofvo2C5t+25I=";
};
# svgwrite requires Python 3.6 or newer
disabled = pythonOlder "3.6";
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# embed_google_web_font test tried to pull font from internet
"test_embed_google_web_font"
];
meta = with lib; {
description = "Python library to create SVG drawings";
homepage = "https://github.com/mozman/svgwrite";
license = licenses.mit;
};
}