depot/third_party/nixpkgs/pkgs/development/python-modules/sphinxcontrib-katex/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

38 lines
812 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, sphinx
}:
buildPythonPackage rec {
pname = "sphinxcontrib-katex";
version = "0.9.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Mcn+gcP6ywhVlguCggJkH4SA6n1ikmviRbah7LejDZE=";
};
propagatedBuildInputs = [
sphinx
];
# There are no unit tests
doCheck = false;
pythonImportsCheck = [
"sphinxcontrib.katex"
];
meta = with lib; {
description = "Sphinx extension using KaTeX to render math in HTML";
homepage = "https://github.com/hagenw/sphinxcontrib-katex";
changelog = "https://github.com/hagenw/sphinxcontrib-katex/blob/v${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}