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";
|
2020-08-16 17:31:16 +00:00
|
|
|
version = "0.5.0";
|
2018-10-27 14:19:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 17:31:16 +00:00
|
|
|
sha256 = "22c795ba2832a169ca301cd0a083f7a434e09c538c70beb42782c073651b707d";
|
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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/snide/sphinx_rtd_theme/";
|
2018-10-27 14:19:59 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|