2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonApplication, fetchPypi
|
2021-07-30 06:07:00 +01:00
|
|
|
, python-slugify, requests, urllib3, six, setuptools, GitPython }:
|
2019-01-17 08:38:07 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "transifex-client";
|
2021-07-30 06:07:00 +01:00
|
|
|
version = "0.14.3";
|
2019-01-17 08:38:07 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-07-30 06:07:00 +01:00
|
|
|
urllib3 requests python-slugify six setuptools GitPython
|
2019-01-17 08:38:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-30 06:07:00 +01:00
|
|
|
sha256 = "sha256-sKol67lRaYPFa7Bg9KNa1rDrNoT9DtUd48NY8jqK1iw=";
|
2019-01-17 08:38:07 +00:00
|
|
|
};
|
|
|
|
|
2021-07-30 06:07:00 +01:00
|
|
|
# https://github.com/transifex/transifex-client/issues/323
|
2019-01-17 08:38:07 +00:00
|
|
|
prePatch = ''
|
2021-07-30 06:07:00 +01:00
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "python-slugify<5.0.0" "python-slugify"
|
2019-01-17 08:38:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Requires external resources
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-01 13:30:52 +01:00
|
|
|
homepage = "https://www.transifex.com/";
|
2021-07-30 06:07:00 +01:00
|
|
|
license = licenses.gpl2Only;
|
2019-01-17 08:38:07 +00:00
|
|
|
description = "Transifex translation service client";
|
2021-07-30 06:07:00 +01:00
|
|
|
maintainers = with maintainers; [ sikmir ];
|
2019-01-17 08:38:07 +00:00
|
|
|
};
|
|
|
|
}
|