depot/third_party/nixpkgs/pkgs/development/python-modules/svgwrite/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

38 lines
700 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pyparsing
, pytest
}:
buildPythonPackage rec {
pname = "svgwrite";
version = "1.3.1";
src = fetchFromGitHub {
owner = "mozman";
repo = "svgwrite";
rev = "v${version}";
sha256 = "14wz0y118a5wwfzin6cirr9254p4y825lnrnackihdbpw22gcw11";
};
propagatedBuildInputs = [
pyparsing
];
checkInputs = [
pytest
];
# embed_google_web_font test tried to pull font from internet
checkPhase = ''
pytest -k "not 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;
};
}