1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "svgwrite";
11 version = "1.4.3";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "mozman";
16 repo = "svgwrite";
17 rev = "v${version}";
18 hash = "sha256-uOsrDhE9AwWU7GIrCVuL3uXTPqtrh8sofvo2C5t+25I=";
19 };
20
21 # svgwrite requires Python 3.6 or newer
22 disabled = pythonOlder "3.6";
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 disabledTests = [
27 # embed_google_web_font test tried to pull font from internet
28 "test_embed_google_web_font"
29 ];
30
31 meta = with lib; {
32 description = "Python library to create SVG drawings";
33 homepage = "https://github.com/mozman/svgwrite";
34 license = licenses.mit;
35 };
36}