depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-codeautolink/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

60 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.1";
format = "pyproject";
outputs = [
"out"
"doc"
];
src = fetchFromGitHub {
owner = "felix-hilden";
repo = "sphinx-codeautolink";
rev = "refs/tags/v${version}";
hash = "sha256-BnGcLAM/KK8Ub+GmRY1oatUCyP4hvY2O1WTjLHBebpw=";
};
nativeBuildInputs = [
setuptools
sphinxHook
sphinx-rtd-theme
matplotlib
ipython
];
sphinxRoot = "docs/src";
propagatedBuildInputs = [
sphinx
beautifulsoup4
];
nativeCheckInputs = [ pytest ];
pythonImportsCheck = [ "sphinx_codeautolink" ];
meta = with lib; {
description = "A sphinx extension that makes code examples clickable";
homepage = "https://github.com/felix-hilden/sphinx-codeautolink";
license = licenses.mit;
maintainers = with maintainers; [ kaction ];
};
}