2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, sphinx
|
|
|
|
, sphinxHook
|
|
|
|
}:
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinxemoji";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
|
|
|
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
|
|
|
propagatedBuildInputs = [
|
|
|
|
sphinx
|
|
|
|
];
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
sphinxHook
|
|
|
|
];
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2023-03-15 16:39:30 +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 ];
|
|
|
|
};
|
|
|
|
}
|