about summary refs log tree commit diff
path: root/pkgs/development/python-modules/sphinx-intl/default.nix
blob: 1fdf937ae65048b6f1de6afe4584f66b6b2b922d (plain) (blame)
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
46
{ lib
, buildPythonPackage
, fetchFromGitHub
, transifex-cli
, babel
, click
, setuptools
, sphinx
, pytestCheckHook
, mock
}:

buildPythonPackage rec {
  pname = "sphinx-intl";
  version = "2.1.0";
  format = "setuptools";

 src = fetchFromGitHub {
    owner = "sphinx-doc";
    repo = pname;
    rev = version;
    hash = "sha256-U/YCviGrsZNruVzfP0P2dGcB0K0Afh+XUZtp71OeP6c=";
  };

  propagatedBuildInputs = [
    babel
    click
    setuptools
    sphinx
  ];

  nativeCheckInputs = [
    pytestCheckHook
    mock
    transifex-cli
  ];

  pythonImportsCheck = [ "sphinx_intl" ];

  meta = with lib; {
    description = "Sphinx utility that make it easy to translate and to apply translation";
    homepage = "https://github.com/sphinx-doc/sphinx-intl";
    license = licenses.bsd2;
    maintainers = with maintainers; [ thornycrackers ];
  };
}