nixpkgs/pkgs/tools/text/transifex-client/default.nix

33 lines
852 B
Nix
Raw Normal View History

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