summary refs log tree commit diff
path: root/pkgs/tools/text/transifex-client/default.nix
blob: f1b2928c7941203cb707e5b272a36b6e51572048 (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
{ lib, buildPythonApplication, fetchPypi
, python-slugify, requests, urllib3, six, setuptools, GitPython }:

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

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-sKol67lRaYPFa7Bg9KNa1rDrNoT9DtUd48NY8jqK1iw=";
  };

  # https://github.com/transifex/transifex-client/issues/323
  prePatch = ''
    substituteInPlace requirements.txt \
      --replace "python-slugify<5.0.0" "python-slugify"
  '';

  # Requires external resources
  doCheck = false;

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