0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
48 lines
921 B
Nix
48 lines
921 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, docutils
|
|
, sphinx
|
|
, readthedocs-sphinx-ext
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-rtd-theme";
|
|
version = "1.1.1";
|
|
|
|
src = fetchPypi {
|
|
pname = "sphinx_rtd_theme";
|
|
inherit version;
|
|
sha256 = "sha256-YUbIRfHhlHs8PdRDLCiZihaTzMdCtPmtfGMSnwdXwQM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "docutils <0.18" "docutils" \
|
|
--replace "sphinx >=1.6,<6" "sphinx"
|
|
'';
|
|
|
|
preBuild = ''
|
|
# Don't use NPM to fetch assets. Assets are included in sdist.
|
|
export CI=1
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
docutils
|
|
sphinx
|
|
];
|
|
|
|
checkInputs = [
|
|
readthedocs-sphinx-ext
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "ReadTheDocs.org theme for Sphinx";
|
|
homepage = "https://github.com/readthedocs/sphinx_rtd_theme";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
};
|
|
|
|
}
|