Files
nixpkgs/pkgs/development/python-modules/dot2tex/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
1002 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
replaceVars,
pyparsing,
graphviz,
pytestCheckHook,
texliveSmall,
}:
buildPythonPackage rec {
pname = "dot2tex";
version = "2.11.3";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-KZoq8FruW74CV6VipQapPieSk9XDjyjQirissyM/584=";
};
patches = [
(replaceVars ./path.patch {
inherit graphviz;
})
./test.patch # https://github.com/kjellmf/dot2tex/issues/5
# https://github.com/xyz2tex/dot2tex/pull/104 does not merge cleanly
./remove-duplicate-script.patch
];
propagatedBuildInputs = [ pyparsing ];
nativeCheckInputs = [
pytestCheckHook
(texliveSmall.withPackages (
ps: with ps; [
preview
pstricks
]
))
];
meta = {
description = "Convert graphs generated by Graphviz to LaTeX friendly formats";
mainProgram = "dot2tex";
homepage = "https://github.com/kjellmf/dot2tex";
license = lib.licenses.mit;
};
}