1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, transifex-cli
5, babel
6, click
7, setuptools
8, sphinx
9, pytestCheckHook
10, mock
11}:
12
13buildPythonPackage rec {
14 pname = "sphinx-intl";
15 version = "2.1.0";
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "sphinx-doc";
20 repo = pname;
21 rev = version;
22 hash = "sha256-U/YCviGrsZNruVzfP0P2dGcB0K0Afh+XUZtp71OeP6c=";
23 };
24
25 propagatedBuildInputs = [
26 babel
27 click
28 setuptools
29 sphinx
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 mock
35 transifex-cli
36 ];
37
38 pythonImportsCheck = [ "sphinx_intl" ];
39
40 meta = with lib; {
41 description = "Sphinx utility that make it easy to translate and to apply translation";
42 homepage = "https://github.com/sphinx-doc/sphinx-intl";
43 license = licenses.bsd2;
44 maintainers = with maintainers; [ thornycrackers ];
45 };
46}