1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 python,
6}:
7
8buildPythonPackage rec {
9 pname = "pysvg-py3";
10 version = "0.2.2-post3";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "alorence";
15 repo = "pysvg-py3";
16 rev = version;
17 sha256 = "1slync0knpcjgl4xpym8w4249iy6vmrwbarpnbjzn9xca8g1h2f0";
18 };
19
20 checkPhase = ''
21 runHook preCheck
22 mkdir testoutput
23 ${python.interpreter} sample/tutorial.py
24 runHook postCheck
25 '';
26
27 pythonImportsCheck = [ "pysvg" ];
28
29 meta = {
30 homepage = "https://github.com/alorence/pysvg-py3";
31 description = "Creating SVG with Python";
32 license = lib.licenses.bsd2;
33 maintainers = with lib.maintainers; [ davidak ];
34 };
35}