Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, pytest 6, mock 7, sphinx 8}: 9 10buildPythonPackage rec { 11 pname = "readthedocs-sphinx-ext"; 12 version = "2.2.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-5e/82CWBYRGjd6t6iXuBkhUTj45eisyG+ZIYMo+VckA="; 17 }; 18 19 propagatedBuildInputs = [ requests ]; 20 21 nativeCheckInputs = [ pytest mock sphinx ]; 22 23 checkPhase = '' 24 py.test 25 ''; 26 27 meta = with lib; { 28 description = "Sphinx extension for Read the Docs overrides"; 29 homepage = "https://github.com/rtfd/readthedocs-sphinx-ext"; 30 license = licenses.mit; 31 }; 32}