1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, poetry-core
6, inkex
7, lxml
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "svg2tikz";
13 version = "2.1.0";
14
15 disabled = pythonOlder "3.7";
16
17 format = "pyproject";
18
19 src = fetchFromGitHub {
20 owner = "xyz2tex";
21 repo = "svg2tikz";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-v8+0h90uJlkI5eJcwCG55nxPz8n2aJXwP8Ocp48cl9M=";
24 };
25
26 nativeBuildInputs = [
27 poetry-core
28 ];
29
30 propagatedBuildInputs = [
31 inkex
32 lxml
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "svg2tikz" ];
40
41 meta = with lib; {
42 changelog = "https://github.com/xyz2tex/svg2tikz/blob/${src.rev}/CHANGELOG.md";
43 homepage = "https://github.com/xyz2tex/svg2tikz";
44 description = "Set of tools for converting SVG graphics to TikZ/PGF code";
45 license = licenses.gpl2Plus;
46 maintainers = with maintainers; [ dotlambda gal_bolle ];
47 };
48}