mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #145443 from KAction/python/sphinxemoji
python3.pkgs.sphinxcontrib-sphinxemoji: init at 0.2.0
This commit is contained in:
commit
0439f0d1dc
2 changed files with 39 additions and 0 deletions
37
pkgs/development/python-modules/sphinxemoji/default.nix
Normal file
37
pkgs/development/python-modules/sphinxemoji/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue