Unverified Commit 289cbd9b authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python310Packages.sphinxcontrib-katex: disable on older Python releases

parent 330ede2f
Loading
Loading
Loading
Loading
+16 −7
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi, pythonOlder, sphinx }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, sphinx
}:

buildPythonPackage rec {
  pname = "sphinxcontrib-katex";
  version = "0.9.0";
  format = "setuptools";

  # pkgutil namespaces are broken in nixpkgs (because they can't scan multiple
  # directories). But python2 is EOL, so not supporting it should be ok.
  disabled = pythonOlder "3";
  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-HFs1+9tWl1D5VWY14dPCk+Ewv+ubedhd9DcCSrPQZnQ=";
    hash = "sha256-HFs1+9tWl1D5VWY14dPCk+Ewv+ubedhd9DcCSrPQZnQ=";
  };

  propagatedBuildInputs = [ sphinx ];
  propagatedBuildInputs = [
    sphinx
  ];

  # There are no unit tests
  doCheck = false;
  pythonImportsCheck = [ "sphinxcontrib.katex" ];

  pythonImportsCheck = [
    "sphinxcontrib.katex"
  ];

  meta = with lib; {
    description = "Sphinx extension using KaTeX to render math in HTML";