2019-01-17 09:38:07 +01:00
|
|
|
{ stdenv, buildPythonApplication, fetchPypi
|
2019-03-04 13:15:01 +01:00
|
|
|
, python-slugify, requests, urllib3, six }:
|
2019-01-17 09:38:07 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "transifex-client";
|
2019-02-08 14:45:12 +01:00
|
|
|
version = "0.13.6";
|
2019-01-17 09:38:07 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2019-03-04 13:15:01 +01:00
|
|
|
urllib3 requests python-slugify six
|
2019-01-17 09:38:07 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-08 14:45:12 +01:00
|
|
|
sha256 = "0y6pprlmkmi7wfqr3k70sb913qa70p3i90q5mravrai7cr32y1w8";
|
2019-01-17 09:38:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
2019-03-04 13:15:01 +01:00
|
|
|
substituteInPlace requirements.txt --replace "urllib3<1.24" "urllib3<2.0" \
|
|
|
|
--replace "six==1.11.0" "six<2.0.0" \
|
2019-04-26 09:05:39 +02:00
|
|
|
--replace "python-slugify==1.2.6" "python-slugify<4.0.0"
|
2019-01-17 09:38:07 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|