35 lines
693 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, sphinx
, readthedocs-sphinx-ext
, pytest
}:
buildPythonPackage rec {
pname = "sphinx_rtd_theme";
version = "0.5.1";
src = fetchPypi {
inherit pname version;
2021-03-31 16:58:36 -06:00
sha256 = "19c31qhfiqbm6y7mamglrc2mc7l6n4lasb8jry01lc67l3nqk9pd";
};
propagatedBuildInputs = [ sphinx ];
checkInputs = [ readthedocs-sphinx-ext pytest ];
2021-03-31 16:58:36 -06:00
CI=1; # Don't use NPM to fetch assets. Assets are included in sdist.
checkPhase = ''
py.test
'';
meta = with lib; {
description = "ReadTheDocs.org theme for Sphinx";
2021-03-31 16:58:36 -06:00
homepage = "https://github.com/readthedocs/sphinx_rtd_theme";
license = licenses.mit;
platforms = platforms.unix;
};
}