2018-10-28 00:03:13 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
, pyparsing
|
2018-12-05 03:41:08 +01:00
|
|
|
, pytest
|
2018-10-28 00:03:13 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "svgwrite";
|
2018-12-05 03:41:08 +01:00
|
|
|
version = "1.2.1";
|
2018-10-28 00:03:13 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-12-05 03:41:08 +01:00
|
|
|
extension = "zip";
|
|
|
|
sha256 = "72ef66c9fe367989823cb237ab7f012ac809dd3ba76c1b5ebd9aa61580e2e75e";
|
2018-10-28 00:03:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ pyparsing ];
|
2018-12-05 03:41:08 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
2018-10-28 00:03:13 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Python library to create SVG drawings";
|
2018-12-05 03:41:08 +01:00
|
|
|
homepage = https://github.com/mozman/svgwrite;
|
2018-10-28 00:03:13 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|