mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
62 lines
1.2 KiB
Nix
62 lines
1.2 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.17.4";
|
|
pyproject = true;
|
|
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "felix-hilden";
|
|
repo = "sphinx-codeautolink";
|
|
tag = "v${version}";
|
|
hash = "sha256-1a76t4k2hVXwrG6X4w5yFYCMyR12Nlqodd2D0GoH/vM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeBuildInputs = [
|
|
sphinxHook
|
|
sphinx-rtd-theme
|
|
matplotlib
|
|
ipython
|
|
];
|
|
|
|
sphinxRoot = "docs/src";
|
|
|
|
dependencies = [
|
|
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";
|
|
changelog = "https://github.com/felix-hilden/sphinx-codeautolink/releases/tag/${src.tag}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kaction ];
|
|
};
|
|
}
|