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