1{
2 lib,
3 buildPythonPackage,
4 chameleon,
5 click,
6 fetchFromGitHub,
7 polib,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "lingva";
15 version = "5.0.3";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "vacanza";
22 repo = "lingva";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-usJyEbHtwhsc0ulG9+7zJ/kDUFrxfqykZLOAWwzP+Dw=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 chameleon
31 click
32 polib
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "lingva" ];
38
39 meta = with lib; {
40 description = "Module with tools to extract translatable texts from your code";
41 homepage = "https://github.com/vacanza/lingva";
42 changelog = "https://github.com/vacanza/lingva/blob/${version}/changes.rst";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ fab ];
45 };
46}