depot/third_party/nixpkgs/pkgs/tools/text/transifex-client/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

32 lines
861 B
Nix

{ stdenv, buildPythonApplication, fetchPypi
, python-slugify, requests, urllib3, six, setuptools }:
buildPythonApplication rec {
pname = "transifex-client";
version = "0.13.9";
propagatedBuildInputs = [
urllib3 requests python-slugify six setuptools
];
src = fetchPypi {
inherit pname version;
sha256 = "0lgd77vrddvyn8afkxr7a7hblmp4k5sr0i9i1032xdih2bipdd9f";
};
prePatch = ''
substituteInPlace requirements.txt --replace "urllib3<1.24" "urllib3>=1.24" \
--replace "six==1.11.0" "six>=1.11.0" \
--replace "python-slugify<2.0.0" "python-slugify>2.0.0"
'';
# 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 ];
};
}