depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-rtd-theme/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

60 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
docutils,
sphinx,
readthedocs-sphinx-ext,
sphinxcontrib-jquery,
pytestCheckHook,
pythonRelaxDepsHook,
}:
buildPythonPackage rec {
pname = "sphinx-rtd-theme";
version = "2.0.0";
format = "setuptools";
src = fetchPypi {
pname = "sphinx_rtd_theme";
inherit version;
hash = "sha256-vV17gGIkBnYgc6BO+PrcX5FRJhVj1HAn3gmRDOA6/ms=";
};
preBuild = ''
# Don't use NPM to fetch assets. Assets are included in sdist.
export CI=1
'';
propagatedBuildInputs = [
docutils
sphinx
sphinxcontrib-jquery
];
nativeBuildInputs = [ pythonRelaxDepsHook ];
nativeCheckInputs = [
pytestCheckHook
readthedocs-sphinx-ext
];
disabledTests = [
# docutils 0.21 compat
"test_basic"
];
pythonRelaxDeps = [
"docutils"
"sphinxcontrib-jquery"
];
pythonImportsCheck = [ "sphinx_rtd_theme" ];
meta = with lib; {
description = "Sphinx theme for readthedocs.org";
homepage = "https://github.com/readthedocs/sphinx_rtd_theme";
changelog = "https://github.com/readthedocs/sphinx_rtd_theme/blob/${version}/docs/changelog.rst";
license = licenses.mit;
};
}