nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 60 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 docutils, 7 sphinx, 8 sphinxcontrib-jquery, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "sphinx-rtd-theme"; 14 version = "3.1.0"; 15 pyproject = true; 16 17 src = fetchPypi { 18 pname = "sphinx_rtd_theme"; 19 inherit version; 20 hash = "sha256-tEJ28sJ26Qkjmk9slVqmZ6qv63hZeSOxxgurx223jkw="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 preBuild = '' 26 # Don't use NPM to fetch assets. Assets are included in sdist. 27 export CI=1 28 ''; 29 30 dependencies = [ 31 docutils 32 sphinx 33 sphinxcontrib-jquery 34 ]; 35 36 pythonRelaxDeps = [ 37 "docutils" 38 "sphinxcontrib-jquery" 39 # https://github.com/readthedocs/sphinx_rtd_theme/pull/1666 40 "sphinx" 41 ]; 42 43 nativeCheckInputs = [ 44 pytestCheckHook 45 ]; 46 47 disabledTests = [ 48 # docutils 0.21 compat 49 "test_basic" 50 ]; 51 52 pythonImportsCheck = [ "sphinx_rtd_theme" ]; 53 54 meta = { 55 description = "Sphinx theme for readthedocs.org"; 56 homepage = "https://github.com/readthedocs/sphinx_rtd_theme"; 57 changelog = "https://github.com/readthedocs/sphinx_rtd_theme/blob/${version}/docs/changelog.rst"; 58 license = lib.licenses.mit; 59 }; 60}