Merge pull request #145443 from KAction/python/sphinxemoji

python3.pkgs.sphinxcontrib-sphinxemoji: init at 0.2.0
This commit is contained in:
Jonas Heinrich 2022-09-20 14:04:31 +02:00 committed by GitHub
commit 0439f0d1dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ lib, buildPythonPackage, fetchFromGitHub, sphinx }:
buildPythonPackage rec {
pname = "sphinxemoji";
version = "0.2.0";
outputs = [ "out" "doc" ];
src = fetchFromGitHub {
owner = "sphinx-contrib";
repo = "emojicodes"; # does not match pypi name
rev = "v${version}";
sha256 = "sha256-TLhjpJpUIoDAe3RZ/7sjTgdW+5s7OpMEd1/w0NyCQ3A=";
};
propagatedBuildInputs = [ sphinx ];
nativeBuildInputs = [ sphinx ];
postBuild = ''
PYTHONPATH=$PWD:$PYTHONPATH make -C docs html
'';
postInstall = ''
mkdir -p $out/share/doc/python/$pname
cp -r ./docs/build/html $out/share/doc/python/$pname
'';
pythonImportsCheck = [ "sphinxemoji" ];
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 ];
};
}

View file

@ -10432,6 +10432,8 @@ in {
sphinx-copybutton = callPackage ../development/python-modules/sphinx-copybutton { };
sphinxemoji = callPackage ../development/python-modules/sphinxemoji { };
sphinx-inline-tabs = callPackage ../development/python-modules/sphinx-inline-tabs { };
sphinx-jinja = callPackage ../development/python-modules/sphinx-jinja { };