about summary refs log tree commit diff
path: root/pkgs/development/python-modules/svgwrite/default.nix
blob: 7ac6fd9f13cfc2b1d5700cd5c95b740853950d36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ 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;
  };

}