1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 18:12:46 +00:00
nixpkgs/pkgs/tools/text/transifex-client/default.nix
2019-05-03 15:46:09 +02:00

33 lines
833 B
Nix

{ stdenv, buildPythonApplication, fetchPypi
, python-slugify, requests, urllib3, six }:
buildPythonApplication rec {
pname = "transifex-client";
version = "0.13.6";
propagatedBuildInputs = [
urllib3 requests python-slugify six
];
src = fetchPypi {
inherit pname version;
sha256 = "0y6pprlmkmi7wfqr3k70sb913qa70p3i90q5mravrai7cr32y1w8";
};
prePatch = ''
substituteInPlace requirements.txt --replace "urllib3<1.24" "urllib3<2.0" \
--replace "six==1.11.0" "six<2.0.0" \
--replace "python-slugify==1.2.6" "python-slugify<4.0.0"
'';
# 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 ];
};
}