1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 sphinx, 7 sphinxHook, 8}: 9 10buildPythonPackage rec { 11 pname = "sphinxemoji"; 12 version = "0.3.1"; 13 format = "pyproject"; 14 15 outputs = [ 16 "out" 17 "doc" 18 ]; 19 20 src = fetchFromGitHub { 21 owner = "sphinx-contrib"; 22 repo = "emojicodes"; 23 tag = "v${version}"; 24 hash = "sha256-ss7snuXyT+tahc2GioB7qdGDqZdajEGdbaNt0aWF9ls="; 25 }; 26 27 nativeBuildInputs = [ 28 setuptools 29 sphinxHook 30 ]; 31 32 propagatedBuildInputs = [ 33 sphinx 34 # sphinxemoji.py imports pkg_resources directly 35 setuptools 36 ]; 37 38 pythonImportsCheck = [ "sphinxemoji" ]; 39 40 meta = with lib; { 41 description = "Extension to use emoji codes in your Sphinx documentation"; 42 homepage = "https://github.com/sphinx-contrib/emojicodes"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ kaction ]; 45 }; 46}