2018-10-27 14:19:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-12-03 10:59:12 +00:00
|
|
|
, sphinx
|
2019-02-20 18:57:06 +00:00
|
|
|
, readthedocs-sphinx-ext
|
|
|
|
, pytest
|
2018-10-27 14:19:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx_rtd_theme";
|
2019-02-14 07:37:30 +00:00
|
|
|
version = "0.4.3";
|
2018-10-27 14:19:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:30 +00:00
|
|
|
sha256 = "728607e34d60456d736cc7991fd236afb828b21b82f956c5ea75f94c8414040a";
|
2018-10-27 14:19:59 +00:00
|
|
|
};
|
|
|
|
|
2018-12-03 10:59:12 +00:00
|
|
|
propagatedBuildInputs = [ sphinx ];
|
|
|
|
|
2019-02-20 18:57:06 +00:00
|
|
|
checkInputs = [ readthedocs-sphinx-ext pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-10-27 14:19:59 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "ReadTheDocs.org theme for Sphinx";
|
|
|
|
homepage = https://github.com/snide/sphinx_rtd_theme/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|