1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
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.16";
15
16 pyproject = true;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-a1C+j4Zo0DJ9BWDn5Zsu4zAftcUixfPktAWdqiFJpiU=";
21 };
22
23 patches = [ ./fix_tests.patch ];
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/${version}/CHANGES.rst";
41 license = licenses.gpl3Only;
42 maintainers = with maintainers; [ erictapen ];
43 };
44
45}