about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/lingua/default.nix
blob: c218e4a5376f72e5a3ffbf8477659f5eb3da81ab (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
, fetchPypi
, buildPythonPackage
, flit-core
, polib
, click }:

buildPythonPackage rec {
  pname = "lingua";
  version = "4.15.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-DhqUZ0HbKIpANhrQT/OP4EvwgZg0uKu4TEtTX+2bpO8=";
  };

  nativeBuildInputs = [
    flit-core
  ];

  propagatedBuildInputs = [
    click
    polib
  ];

  pythonImportsCheck = [ "lingua" ];

  meta = with lib; {
    description = "Translation toolset";
    homepage = "https://github.com/wichert/lingua";
    license = licenses.bsd3;
    maintainers = with maintainers; [ np ];
  };
}