Skip to content

Commit

Permalink
python3Packages.sphinxcontrib-svg2pdfconverter: init at 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dansbandit committed Nov 1, 2024
1 parent 838f2f7 commit 48bc471
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
setuptools,
sphinx,
cairosvg,
inkscape,
librsvg,
fetchPypi,

withCairosvg ? false,
withInkscape ? false,
withLibrsvg ? false,
}:

buildPythonPackage rec {
pname = "sphinxcontrib-svg2pdfconverter";
version = "1.2.3";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "sphinxcontrib_svg2pdfconverter";
hash = "sha256-+11Re2NMVilSIATFntzk2QUNiYIkCMq0UsfVL+WumCQ=";
};

build-system = [ setuptools ];

dependencies =
[ sphinx ]
++ lib.optional withCairosvg cairosvg
++ lib.optional withInkscape inkscape
++ lib.optional withLibrsvg librsvg;

doCheck = false; # no tests

pythonNamespaces = [ "sphinxcontrib" ];

meta = {
description = "Sphinx SVG to PDF converter extension";
homepage = "https://pypi.org/project/sphinxcontrib-svg2pdfconverter";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ dansbandit ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14891,6 +14891,8 @@ self: super: with self; {

sphinxcontrib-spelling = callPackage ../development/python-modules/sphinxcontrib-spelling { };

sphinxcontrib-svg2pdfconverter = callPackage ../development/python-modules/sphinxcontrib-svg2pdfconverter { };

sphinxcontrib-tikz = callPackage ../development/python-modules/sphinxcontrib-tikz { };

sphinxcontrib-wavedrom = callPackage ../development/python-modules/sphinxcontrib-wavedrom { };
Expand Down

0 comments on commit 48bc471

Please sign in to comment.