2020-01-01 18:11:03 +00:00
|
|
|
{ lib
|
2018-10-27 23:03:13 +01:00
|
|
|
, buildPythonPackage
|
2020-01-01 18:11:03 +00:00
|
|
|
, fetchFromGitHub
|
2018-10-27 23:03:13 +01:00
|
|
|
, pyparsing
|
2018-12-05 02:41:08 +00:00
|
|
|
, pytest
|
2018-10-27 23:03:13 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "svgwrite";
|
2019-10-24 07:47:50 +01:00
|
|
|
version = "1.3.1";
|
2018-10-27 23:03:13 +01:00
|
|
|
|
2020-01-01 18:11:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozman";
|
|
|
|
repo = "svgwrite";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "14wz0y118a5wwfzin6cirr9254p4y825lnrnackihdbpw22gcw11";
|
2018-10-27 23:03:13 +01:00
|
|
|
};
|
|
|
|
|
2020-01-01 18:11:03 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyparsing
|
|
|
|
];
|
2018-12-05 02:41:08 +00:00
|
|
|
|
2020-01-01 18:11:03 +00:00
|
|
|
checkInputs = [
|
2018-12-05 02:41:08 +00:00
|
|
|
pytest
|
2020-01-01 18:11:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# embed_google_web_font test tried to pull font from internet
|
|
|
|
checkPhase = ''
|
|
|
|
pytest -k "not test_embed_google_web_font"
|
2018-12-05 02:41:08 +00:00
|
|
|
'';
|
2018-10-27 23:03:13 +01:00
|
|
|
|
2020-01-01 18:11:03 +00:00
|
|
|
meta = with lib; {
|
2018-10-27 23:03:13 +01:00
|
|
|
description = "A Python library to create SVG drawings";
|
2018-12-05 02:41:08 +00:00
|
|
|
homepage = https://github.com/mozman/svgwrite;
|
2018-10-27 23:03:13 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|