1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, lxml
5, isPy27
6}:
7
8buildPythonPackage {
9 pname = "svg2tikz";
10 version = "1.0.0";
11 disabled = ! isPy27;
12
13 propagatedBuildInputs = [ lxml ];
14
15 src = fetchFromGitHub {
16 owner = "kjellmf";
17 repo = "svg2tikz";
18 rev = "ad36f2c3818da13c4136d70a0fd8153acf8daef4";
19 sha256 = "sha256-QpQo7ENeU2crhc37uJu4rw/5+COPXQWXBynlF30lLV8=";
20 fetchSubmodules = true;
21 };
22
23 meta = with lib; {
24 homepage = "https://github.com/kjellmf/svg2tikz";
25 description = "An SVG to TikZ converter";
26 license = licenses.gpl2Plus;
27 maintainers = with maintainers; [ gal_bolle ];
28 };
29
30}