about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/svgwrite/default.nix
blob: 1772e8794ffda7dca6557743a0a5b3f283648ca6 (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
{ 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;
  };

}