1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 docutils, 6 sphinx, 7 readthedocs-sphinx-ext, 8 sphinxcontrib-jquery, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "sphinx-rtd-theme"; 14 version = "3.0.2"; 15 format = "setuptools"; 16 17 src = fetchPypi { 18 pname = "sphinx_rtd_theme"; 19 inherit version; 20 hash = "sha256-t0V7wl3acjsgsIamcLmVPIWeq2CioD7o6yuyPhduX4U="; 21 }; 22 23 preBuild = '' 24 # Don't use NPM to fetch assets. Assets are included in sdist. 25 export CI=1 26 ''; 27 28 propagatedBuildInputs = [ 29 docutils 30 sphinx 31 sphinxcontrib-jquery 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 readthedocs-sphinx-ext 37 ]; 38 39 disabledTests = [ 40 # docutils 0.21 compat 41 "test_basic" 42 ]; 43 44 pythonRelaxDeps = [ 45 "docutils" 46 "sphinxcontrib-jquery" 47 ]; 48 49 pythonImportsCheck = [ "sphinx_rtd_theme" ]; 50 51 meta = with lib; { 52 description = "Sphinx theme for readthedocs.org"; 53 homepage = "https://github.com/readthedocs/sphinx_rtd_theme"; 54 changelog = "https://github.com/readthedocs/sphinx_rtd_theme/blob/${version}/docs/changelog.rst"; 55 license = licenses.mit; 56 }; 57}