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