at master 937 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 inkex, 7 lxml, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "svg2tikz"; 13 version = "3.3.2"; 14 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "xyz2tex"; 19 repo = "svg2tikz"; 20 tag = "v${version}"; 21 hash = "sha256-/yILTmF/N+ZJTKsyFI4vicOYlyuhkBgmFguglu3iXlc="; 22 }; 23 24 build-system = [ 25 poetry-core 26 ]; 27 28 dependencies = [ 29 inkex 30 lxml 31 ]; 32 33 pythonRelaxDeps = [ 34 "inkex" 35 "lxml" 36 ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "svg2tikz" ]; 41 42 meta = { 43 changelog = "https://github.com/xyz2tex/svg2tikz/blob/${src.tag}/CHANGELOG.md"; 44 homepage = "https://github.com/xyz2tex/svg2tikz"; 45 description = "Set of tools for converting SVG graphics to TikZ/PGF code"; 46 license = lib.licenses.gpl2Plus; 47 maintainers = with lib.maintainers; [ 48 dotlambda 49 gal_bolle 50 ]; 51 }; 52}