-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.sphinxcontrib-svg2pdfconverter: init at 1.2.3
- Loading branch information
1 parent
838f2f7
commit b3887e5
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
pkgs/development/python-modules/sphinxcontrib-svg2pdfconverter/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters