1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5# documentation build dependencies 6, sphinxHook 7, sphinx-rtd-theme 8, matplotlib 9, ipython 10# runtime dependencies 11, sphinx 12, beautifulsoup4 13# check dependencies 14, pytest 15}: 16 17buildPythonPackage rec { 18 pname = "sphinx-codeautolink"; 19 version = "0.15.0"; 20 format = "pyproject"; 21 22 outputs = [ "out" "doc" ]; 23 24 src = fetchFromGitHub { 25 owner = "felix-hilden"; 26 repo = "sphinx-codeautolink"; 27 rev = "refs/tags/v${version}"; 28 hash = "sha256-iXUdOwyTRViDTDRPCcteiJ2Rcdbpiol7JPEzqbUwIPc="; 29 }; 30 31 nativeBuildInputs = [ 32 setuptools 33 sphinxHook 34 sphinx-rtd-theme 35 matplotlib 36 ipython 37 ]; 38 39 sphinxRoot = "docs/src"; 40 41 propagatedBuildInputs = [ sphinx beautifulsoup4 ]; 42 43 nativeCheckInputs = [ pytest ]; 44 45 pythonImportsCheck = [ "sphinx_codeautolink" ]; 46 47 meta = with lib; { 48 description = "A sphinx extension that makes code examples clickable"; 49 homepage = "https://github.com/felix-hilden/sphinx-codeautolink"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ kaction ]; 52 }; 53}