depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-rtd-theme/default.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, docutils
, sphinx
, readthedocs-sphinx-ext
, sphinx-jquery
, pytestCheckHook
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "sphinx-rtd-theme";
version = "1.2.0";
format = "setuptools";
src = fetchPypi {
pname = "sphinx_rtd_theme";
inherit version;
sha256 = "sha256-oNi9Gi7VLgszjL4ZxLLu88XnoEh2l1PaxqnwWce2Qbg=";
};
preBuild = ''
# Don't use NPM to fetch assets. Assets are included in sdist.
export CI=1
'';
propagatedBuildInputs = [
docutils
sphinx
sphinx-jquery
];
nativeCheckInputs = [
pytestCheckHook
pythonRelaxDepsHook
readthedocs-sphinx-ext
];
pythonRelaxDeps = [
"docutils"
"sphinxcontrib-jquery"
];
pythonImportsCheck = [
"sphinx_rtd_theme"
];
meta = with lib; {
description = "Sphinx theme for readthedocs.org";
homepage = "https://github.com/readthedocs/sphinx_rtd_theme";
changelog = "https://github.com/readthedocs/sphinx_rtd_theme/blob/${version}/docs/changelog.rst";
license = licenses.mit;
};
}