depot/third_party/nixpkgs/pkgs/tools/text/transifex-client/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

32 lines
852 B
Nix

{ 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 ];
};
}