1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, sphinx
5, sphinxHook
6}:
7
8buildPythonPackage rec {
9 pname = "sphinxemoji";
10 version = "0.2.0";
11
12 outputs = [ "out" "doc" ];
13
14 src = fetchFromGitHub {
15 owner = "sphinx-contrib";
16 repo = "emojicodes";
17 rev = "refs/tags/v${version}";
18 hash = "sha256-TLhjpJpUIoDAe3RZ/7sjTgdW+5s7OpMEd1/w0NyCQ3A=";
19 };
20
21 propagatedBuildInputs = [
22 sphinx
23 ];
24
25 nativeBuildInputs = [
26 sphinxHook
27 ];
28
29 pythonImportsCheck = [
30 "sphinxemoji"
31 ];
32
33 meta = with lib; {
34 description = "Extension to use emoji codes in your Sphinx documentation";
35 homepage = "https://github.com/sphinx-contrib/emojicodes";
36 license = licenses.mit;
37 maintainers = with maintainers; [ kaction ];
38 };
39}