mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
6f568c836b
python311Packages.sphinx-codeautolink: 0.15.1 -> 0.15.2
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
# documentation build dependencies
|
|
sphinxHook,
|
|
sphinx-rtd-theme,
|
|
matplotlib,
|
|
ipython,
|
|
# runtime dependencies
|
|
sphinx,
|
|
beautifulsoup4,
|
|
# check dependencies
|
|
pytest,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-codeautolink";
|
|
version = "0.15.2";
|
|
format = "pyproject";
|
|
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "felix-hilden";
|
|
repo = "sphinx-codeautolink";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-h1lteF5a3ga1VlhXCz2biydli3sg3ktPbz0O5n0eeFI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
sphinxHook
|
|
sphinx-rtd-theme
|
|
matplotlib
|
|
ipython
|
|
];
|
|
|
|
sphinxRoot = "docs/src";
|
|
|
|
propagatedBuildInputs = [
|
|
sphinx
|
|
beautifulsoup4
|
|
];
|
|
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
pythonImportsCheck = [ "sphinx_codeautolink" ];
|
|
|
|
meta = with lib; {
|
|
description = "Sphinx extension that makes code examples clickable";
|
|
homepage = "https://github.com/felix-hilden/sphinx-codeautolink";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kaction ];
|
|
};
|
|
}
|