at 24.11-pre 48 lines 958 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.0.1"; 15 16 disabled = pythonOlder "3.7"; 17 18 format = "pyproject"; 19 20 src = fetchFromGitHub { 21 owner = "xyz2tex"; 22 repo = "svg2tikz"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-hvGvJFxhu7llj+tFfZvz12dZ8QYjY7zcLzB5S44l+IM="; 25 }; 26 27 nativeBuildInputs = [ poetry-core ]; 28 29 propagatedBuildInputs = [ 30 inkex 31 lxml 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 pythonImportsCheck = [ "svg2tikz" ]; 37 38 meta = with lib; { 39 changelog = "https://github.com/xyz2tex/svg2tikz/blob/${src.rev}/CHANGELOG.md"; 40 homepage = "https://github.com/xyz2tex/svg2tikz"; 41 description = "Set of tools for converting SVG graphics to TikZ/PGF code"; 42 license = licenses.gpl2Plus; 43 maintainers = with maintainers; [ 44 dotlambda 45 gal_bolle 46 ]; 47 }; 48}