about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/transifex-client/default.nix
blob: 07a49c3d450529e9e1d87bf8348aebb7360110c9 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ lib
, buildPythonApplication
, fetchPypi
, python-slugify
, requests
, urllib3
, six
, setuptools
, gitpython
, pythonRelaxDepsHook
}:

buildPythonApplication rec {
  pname = "transifex-client";
  version = "0.14.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "11dc95cefe90ebf0cef3749c8c7d85b9d389c05bd0e3389bf117685df562bd5c";
  };

  # https://github.com/transifex/transifex-client/issues/323
  nativeBuildInputs = [
    pythonRelaxDepsHook
  ];

  pythonRelaxDeps = [
    "python-slugify"
  ];

  propagatedBuildInputs = [
    gitpython
    python-slugify
    requests
    setuptools
    six
    urllib3
  ];

  # Requires external resources
  doCheck = false;

  meta = with lib; {
    description = "Transifex translation service client";
    homepage = "https://www.transifex.com/";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ sikmir ];
  };
}