mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
34 lines
620 B
Nix
34 lines
620 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, pyparsing
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "svgwrite";
|
|
version = "1.2.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
extension = "zip";
|
|
sha256 = "72ef66c9fe367989823cb237ab7f012ac809dd3ba76c1b5ebd9aa61580e2e75e";
|
|
};
|
|
|
|
buildInputs = [ setuptools ];
|
|
propagatedBuildInputs = [ pyparsing ];
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A Python library to create SVG drawings";
|
|
homepage = https://github.com/mozman/svgwrite;
|
|
license = licenses.mit;
|
|
};
|
|
|
|
}
|