1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 poetry-core,
7 importlib-metadata,
8}:
9
10buildPythonPackage rec {
11 pname = "babelfish";
12 version = "0.6.1";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-3stnpGYIiNSEgKtpmDCYNxdBWNDxqmO+uxwuEaq5eqs=";
18 };
19
20 build-system = [ poetry-core ];
21
22 dependencies = lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
23
24 # no tests executed
25 doCheck = false;
26
27 pythonImportsCheck = [ "babelfish" ];
28
29 meta = with lib; {
30 homepage = "https://github.com/Diaoul/babelfish";
31 description = "Module to work with countries and languages";
32 license = licenses.bsd3;
33 maintainers = [ ];
34 };
35}