python3Packages.sphinx-jinja2-compat: init at 0.4.1
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
whey,
|
||||
whey-pth,
|
||||
jinja2,
|
||||
markupsafe,
|
||||
standard-imghdr,
|
||||
lib,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinx-jinja2-compat";
|
||||
version = "0.4.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "sphinx_jinja2_compat";
|
||||
hash = "sha256-AYjwgC1Cw9pymXUztVoAgVZZp40/gdS0dHsfsVpXKOY=";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace \
|
||||
requirements.txt PKG-INFO pyproject.toml \
|
||||
--replace-fail "standard-imghdr==3.10.14" "standard-imghdr"
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
whey
|
||||
whey-pth
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
jinja2
|
||||
markupsafe
|
||||
standard-imghdr
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "sphinx_jinja2_compat" ];
|
||||
|
||||
meta = {
|
||||
description = "Patches Jinja2 v3 to restore compatibility with earlier Sphinx versions";
|
||||
homepage = "https://github.com/sphinx-toolbox/sphinx-jinja2-compat";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
@@ -17535,6 +17535,8 @@ self: super: with self; {
|
||||
|
||||
sphinx-jinja = callPackage ../development/python-modules/sphinx-jinja { };
|
||||
|
||||
sphinx-jinja2-compat = callPackage ../development/python-modules/sphinx-jinja2-compat { };
|
||||
|
||||
sphinx-jupyterbook-latex = callPackage ../development/python-modules/sphinx-jupyterbook-latex { };
|
||||
|
||||
sphinx-last-updated-by-git =
|
||||
|
||||
Reference in New Issue
Block a user