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