pygame-sdl2: 2.1.0 -> 8.3.1.24090601; modernize derivation (#374642)
[NixPkgs.git] / pkgs / development / python-modules / sphinxemoji / default.nix
blob169515df63f4e2ffcef8396c683b0f7db2f47b3e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   sphinx,
7   sphinxHook,
8 }:
10 buildPythonPackage rec {
11   pname = "sphinxemoji";
12   version = "0.2.0";
13   format = "pyproject";
15   outputs = [
16     "out"
17     "doc"
18   ];
20   src = fetchFromGitHub {
21     owner = "sphinx-contrib";
22     repo = "emojicodes";
23     tag = "v${version}";
24     hash = "sha256-TLhjpJpUIoDAe3RZ/7sjTgdW+5s7OpMEd1/w0NyCQ3A=";
25   };
27   nativeBuildInputs = [
28     setuptools
29     sphinxHook
30   ];
32   propagatedBuildInputs = [
33     sphinx
34     # sphinxemoji.py imports pkg_resources directly
35     setuptools
36   ];
38   pythonImportsCheck = [ "sphinxemoji" ];
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   };