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