nixpkgs/pkgs/development/python-modules/sphinx_rtd_theme/default.nix
Felix Singer 00caba5a1f python3Packages.sphinx_rtd_theme: 0.5.2 -> 1.0.0
Update to latest release.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-10-12 08:09:14 +02:00

47 lines
849 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, docutils
, sphinx
, readthedocs-sphinx-ext
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "sphinx_rtd_theme";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0p3abj91c3l72ajj5jwblscsdf1jflrnn0djx2h5y6f2wjbx9ipf";
};
postPatch = ''
substituteInPlace setup.py \
--replace "docutils<0.17" "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;
};
}