1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 charset-normalizer,
7 ruamel-yaml,
8 weblate-language-data,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "translation-finder";
14 version = "2.23";
15
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "WeblateOrg";
20 repo = "translation-finder";
21 tag = version;
22 hash = "sha256-SmCADimYcSsD3iUt/QqF2SwJPzbFLw5v7SWVSeOyelQ=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 charset-normalizer
29 ruamel-yaml
30 weblate-language-data
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "translation_finder" ];
36
37 meta = with lib; {
38 description = "Translation file finder for Weblate";
39 homepage = "https://github.com/WeblateOrg/translation-finder";
40 changelog = "https://github.com/WeblateOrg/translation-finder/blob/${src.tag}/CHANGES.rst";
41 license = licenses.gpl3Only;
42 mainProgram = "weblate-discover";
43 maintainers = with maintainers; [ erictapen ];
44 };
45
46}