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.3.2";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "sphinx-doc";
21 repo = "sphinx-intl";
22 tag = version;
23 hash = "sha256-5Ro+UG9pwwp656fYyCsna6P4s9Gb86Tu3Qm2WUI7tsE=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 babel
30 click
31 setuptools
32 sphinx
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 mock
38 transifex-cli
39 ];
40
41 pythonImportsCheck = [ "sphinx_intl" ];
42
43 meta = with lib; {
44 description = "Sphinx utility that make it easy to translate and to apply translation";
45 homepage = "https://github.com/sphinx-doc/sphinx-intl";
46 license = licenses.bsd2;
47 maintainers = with maintainers; [ thornycrackers ];
48 };
49}