depot/third_party/nixpkgs/pkgs/tools/text/transifex-client/default.nix
Default email a425ba4985 Project import generated by Copybara.
GitOrigin-RevId: 5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3
2021-12-30 14:39:12 +01:00

32 lines
865 B
Nix

{ lib, buildPythonApplication, fetchPypi
, python-slugify, requests, urllib3, six, setuptools, GitPython }:
buildPythonApplication rec {
pname = "transifex-client";
version = "0.14.4";
propagatedBuildInputs = [
urllib3 requests python-slugify six setuptools GitPython
];
src = fetchPypi {
inherit pname version;
sha256 = "11dc95cefe90ebf0cef3749c8c7d85b9d389c05bd0e3389bf117685df562bd5c";
};
# 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 ];
};
}