a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
48 lines
927 B
Nix
48 lines
927 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
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
};
|
|
|
|
}
|