nixpkgs/pkgs/development/python-modules/svg2tikz/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

41 lines
834 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, lxml
, pytestCheckHook
}:
buildPythonPackage {
pname = "svg2tikz";
version = "unstable-2021-01-12";
format = "setuptools";
src = fetchFromGitHub {
owner = "xyz2tex";
repo = "svg2tikz";
rev = "7a9959c295e1ed73e543474c6f3679d04cebc9e9";
hash = "sha256-OLMFtEEdcY8ARI+hUSOhMwwcrtOAsbKRJRdDJcuaIBg=";
};
propagatedBuildInputs = [
lxml
];
nativeCheckInputs = [
pytestCheckHook
];
# upstream hasn't updated the tests in a while
doCheck = false;
pythonImportsCheck = [ "svg2tikz" ];
meta = with lib; {
homepage = "https://github.com/xyz2tex/svg2tikz";
description = "Set of tools for converting SVG graphics to TikZ/PGF code";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ dotlambda gal_bolle ];
};
}