summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/emojis/default.nix
blob: 5723deca1ddf9da5324740c44b2a0704186efd35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  unittestCheckHook,
  pandoc,
  lib,
}:
let
  version = "0.7.0";
in
buildPythonPackage {
  pname = "emojis";
  inherit version;
  pyproject = true;

  build-system = [ setuptools ];

  src = fetchFromGitHub {
    owner = "alexandrevicenzi";
    repo = "emojis";
    tag = "v${version}";
    hash = "sha256-rr/BM39U1j8EL8b/YojclI4h0NnOCdoMlecR/1f9ISg=";
  };

  nativeBuildInputs = [
    pandoc
  ];

  preBuild = ''
    make pandoc
  '';

  pythonImportsCheck = [ "emojis" ];

  nativeCheckInputs = [ unittestCheckHook ];

  meta = {
    description = "Convert emoji names to emoji characters";
    homepage = "https://github.com/alexandrevicenzi/emojis";
    changelog = "https://github.com/alexandrevicenzi/emojis/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ amadaluzia ];
  };
}