Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 693 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, sphinx 5, readthedocs-sphinx-ext 6, pytest 7}: 8 9buildPythonPackage rec { 10 pname = "sphinx_rtd_theme"; 11 version = "0.5.1"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "19c31qhfiqbm6y7mamglrc2mc7l6n4lasb8jry01lc67l3nqk9pd"; 16 }; 17 18 propagatedBuildInputs = [ sphinx ]; 19 20 checkInputs = [ readthedocs-sphinx-ext pytest ]; 21 CI=1; # Don't use NPM to fetch assets. Assets are included in sdist. 22 23 checkPhase = '' 24 py.test 25 ''; 26 27 meta = with lib; { 28 description = "ReadTheDocs.org theme for Sphinx"; 29 homepage = "https://github.com/readthedocs/sphinx_rtd_theme"; 30 license = licenses.mit; 31 platforms = platforms.unix; 32 }; 33 34}