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