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

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

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "0y6pprlmkmi7wfqr3k70sb913qa70p3i90q5mravrai7cr32y1w8";
  };

  prePatch = ''
    substituteInPlace requirements.txt --replace "urllib3<1.24" "urllib3>=1.24" \
      --replace "six==1.11.0" "six>=1.11.0" \
      --replace "python-slugify==1.2.6" "python-slugify>=1.2.6"
  '';

  # Requires external resources
  doCheck = false;

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