python3.pkgs.sphinxcontrib-sphinxemoji: init at 0.2.0
This commit is contained in:
committed by
Dmitry Bogatov
parent
705476eae4
commit
a7a2773d7d
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -10392,6 +10392,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 { };
|
||||
|
||||
Reference in New Issue
Block a user