02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
47 lines
875 B
Nix
47 lines
875 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, docutils
|
|
, sphinx
|
|
, readthedocs-sphinx-ext
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-rtd-theme";
|
|
version = "1.0.0";
|
|
|
|
src = fetchPypi {
|
|
pname = "sphinx_rtd_theme";
|
|
inherit version;
|
|
sha256 = "0p3abj91c3l72ajj5jwblscsdf1jflrnn0djx2h5y6f2wjbx9ipf";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "docutils<0.18" "docutils"
|
|
'';
|
|
|
|
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;
|
|
};
|
|
|
|
}
|