depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-rtd-theme/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

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;
};
}