python310Packages.sphinxcontrib-katex: disable on older Python releases

This commit is contained in:
Fabian Affolter
2022-08-20 08:55:50 +02:00
committed by GitHub
parent 330ede2f6d
commit 289cbd9b66
@@ -1,23 +1,32 @@
{ 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";