Unverified Commit fd35d151 authored by provokateurin's avatar provokateurin
Browse files

python3Packages.sphinx-jinja2-compat: init at 0.4.1

parent ddc81a56
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
{
  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 = [ ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 =