00caba5a1f
Update to latest release. Signed-off-by: Felix Singer <felixsinger@posteo.net>
46 lines
849 B
Nix
46 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;
|
|
};
|
|
|
|
}
|