about summary refs log tree commit diff
path: root/pkgs/development/python-modules/babelfish/default.nix
blob: 64cd4318226af6be3d669de65e71cb77f0b1ea22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pythonOlder,
  poetry-core,
  importlib-metadata,
}:

buildPythonPackage rec {
  pname = "babelfish";
  version = "0.6.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-3stnpGYIiNSEgKtpmDCYNxdBWNDxqmO+uxwuEaq5eqs=";
  };

  build-system = [ poetry-core ];

  dependencies = lib.optionals (pythonOlder "3.10") [ importlib-metadata ];

  # no tests executed
  doCheck = false;

  pythonImportsCheck = [ "babelfish" ];

  meta = with lib; {
    homepage = "https://github.com/Diaoul/babelfish";
    description = "Module to work with countries and languages";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ];
  };
}