2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonApplication, fetchPypi
|
2021-08-05 21:33:18 +00:00
|
|
|
, python-slugify, requests, urllib3, six, setuptools, GitPython }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "transifex-client";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "0.14.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-08-05 21:33:18 +00:00
|
|
|
urllib3 requests python-slugify six setuptools GitPython
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-30 13:39:12 +00:00
|
|
|
sha256 = "11dc95cefe90ebf0cef3749c8c7d85b9d389c05bd0e3389bf117685df562bd5c";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
# https://github.com/transifex/transifex-client/issues/323
|
2020-04-24 23:36:52 +00:00
|
|
|
prePatch = ''
|
2021-08-05 21:33:18 +00:00
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "python-slugify<5.0.0" "python-slugify"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Requires external resources
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.transifex.com/";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Transifex translation service client";
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ sikmir ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|