Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sphinx-codeautolink / default.nix
blobe7defb682db327652951b8701761efb927530184
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
17 buildPythonPackage rec {
18   pname = "sphinx-codeautolink";
19   version = "0.15.0";
20   format = "pyproject";
22   outputs = [ "out" "doc" ];
24   src = fetchFromGitHub {
25     owner = "felix-hilden";
26     repo = "sphinx-codeautolink";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-iXUdOwyTRViDTDRPCcteiJ2Rcdbpiol7JPEzqbUwIPc=";
29   };
31   nativeBuildInputs = [
32     setuptools
33     sphinxHook
34     sphinx-rtd-theme
35     matplotlib
36     ipython
37   ];
39   sphinxRoot = "docs/src";
41   propagatedBuildInputs = [ sphinx beautifulsoup4 ];
43   nativeCheckInputs = [ pytest ];
45   pythonImportsCheck = [ "sphinx_codeautolink" ];
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   };