nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 transifex-cli,
6 babel,
7 click,
8 setuptools,
9 setuptools-scm,
10 sphinx,
11 pytestCheckHook,
12 mock,
13}:
14
15buildPythonPackage rec {
16 pname = "sphinx-intl";
17 version = "2.3.2";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "sphinx-doc";
22 repo = "sphinx-intl";
23 tag = version;
24 hash = "sha256-5Ro+UG9pwwp656fYyCsna6P4s9Gb86Tu3Qm2WUI7tsE=";
25 };
26
27 build-system = [
28 setuptools
29 setuptools-scm
30 ];
31
32 dependencies = [
33 babel
34 click
35 setuptools
36 sphinx
37 ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 mock
42 transifex-cli
43 ];
44
45 pythonImportsCheck = [ "sphinx_intl" ];
46
47 meta = {
48 description = "Sphinx utility that make it easy to translate and to apply translation";
49 homepage = "https://github.com/sphinx-doc/sphinx-intl";
50 license = lib.licenses.bsd2;
51 maintainers = with lib.maintainers; [ thornycrackers ];
52 };
53}