depot/third_party/nixpkgs/pkgs/development/python-modules/svgwrite/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

36 lines
758 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 = "A Python library to create SVG drawings";
homepage = "https://github.com/mozman/svgwrite";
license = licenses.mit;
};
}