2019-01-17 08:38:07 +00:00
|
|
|
{ stdenv, buildPythonApplication, fetchPypi
|
2019-10-01 13:30:52 +01:00
|
|
|
, python-slugify, requests, urllib3, six, setuptools }:
|
2019-01-17 08:38:07 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "transifex-client";
|
2019-02-08 13:45:12 +00:00
|
|
|
version = "0.13.6";
|
2019-01-17 08:38:07 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2019-10-01 13:30:52 +01:00
|
|
|
urllib3 requests python-slugify six setuptools
|
2019-01-17 08:38:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-08 13:45:12 +00:00
|
|
|
sha256 = "0y6pprlmkmi7wfqr3k70sb913qa70p3i90q5mravrai7cr32y1w8";
|
2019-01-17 08:38:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
2019-11-01 06:54:31 +00:00
|
|
|
substituteInPlace requirements.txt --replace "urllib3<1.24" "urllib3>=1.24" \
|
|
|
|
--replace "six==1.11.0" "six>=1.11.0" \
|
|
|
|
--replace "python-slugify==1.2.6" "python-slugify>=1.2.6"
|
2019-01-17 08:38:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Requires external resources
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-10-01 13:30:52 +01:00
|
|
|
homepage = "https://www.transifex.com/";
|
2019-01-17 08:38:07 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
description = "Transifex translation service client";
|
|
|
|
maintainers = [ maintainers.etu ];
|
|
|
|
};
|
|
|
|
}
|