2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2022-03-30 09:31:56 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, lxml
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "svg2tikz";
|
|
|
|
version = "1.0.0";
|
|
|
|
disabled = ! isPy27;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ lxml ];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kjellmf";
|
|
|
|
repo = "svg2tikz";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "ad36f2c3818da13c4136d70a0fd8153acf8daef4";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-QpQo7ENeU2crhc37uJu4rw/5+COPXQWXBynlF30lLV8=";
|
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/kjellmf/svg2tikz";
|
|
|
|
description = "An SVG to TikZ converter";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ gal_bolle ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|