Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, lxml
5, pytestCheckHook
6}:
7
8buildPythonPackage {
9 pname = "svg2tikz";
10 version = "unstable-2021-01-12";
11
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "xyz2tex";
16 repo = "svg2tikz";
17 rev = "7a9959c295e1ed73e543474c6f3679d04cebc9e9";
18 hash = "sha256-OLMFtEEdcY8ARI+hUSOhMwwcrtOAsbKRJRdDJcuaIBg=";
19 };
20
21 propagatedBuildInputs = [
22 lxml
23 ];
24
25 checkInputs = [
26 pytestCheckHook
27 ];
28
29 # upstream hasn't updated the tests in a while
30 doCheck = false;
31
32 pythonImportsCheck = [ "svg2tikz" ];
33
34 meta = with lib; {
35 homepage = "https://github.com/xyz2tex/svg2tikz";
36 description = "Set of tools for converting SVG graphics to TikZ/PGF code";
37 license = licenses.gpl2Plus;
38 maintainers = with maintainers; [ dotlambda gal_bolle ];
39 };
40}