2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
sphinx,
|
|
|
|
sphinxHook,
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinxemoji";
|
|
|
|
version = "0.2.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
format = "pyproject";
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"doc"
|
|
|
|
];
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sphinx-contrib";
|
2023-03-15 16:39:30 +00:00
|
|
|
repo = "emojicodes";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-TLhjpJpUIoDAe3RZ/7sjTgdW+5s7OpMEd1/w0NyCQ3A=";
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
setuptools
|
2023-03-15 16:39:30 +00:00
|
|
|
sphinxHook
|
|
|
|
];
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
sphinx
|
2024-02-29 20:09:43 +00:00
|
|
|
# sphinxemoji.py imports pkg_resources directly
|
|
|
|
setuptools
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "sphinxemoji" ];
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Extension to use emoji codes in your Sphinx documentation";
|
|
|
|
homepage = "https://github.com/sphinx-contrib/emojicodes";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kaction ];
|
|
|
|
};
|
|
|
|
}
|