Merge pull request #188282 from onny/transifex-client

transifex-client: Fix build
This commit is contained in:
Jonas Heinrich 2022-08-25 14:46:31 +02:00 committed by GitHub
commit e2e40d7098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 11 deletions

View File

@ -1,24 +1,36 @@
{ lib, buildPythonApplication, fetchPypi
, python-slugify, requests, urllib3, six, setuptools, GitPython }:
{ lib
, buildPythonApplication
, fetchPypi
, python-slugify
, requests
, urllib3
, six
, setuptools
, GitPython
, pythonRelaxDepsHook
}:
buildPythonApplication rec {
pname = "transifex-client";
version = "0.14.4";
propagatedBuildInputs = [
urllib3 requests python-slugify six setuptools GitPython
];
src = fetchPypi {
inherit pname version;
sha256 = "11dc95cefe90ebf0cef3749c8c7d85b9d389c05bd0e3389bf117685df562bd5c";
};
# https://github.com/transifex/transifex-client/issues/323
prePatch = ''
substituteInPlace requirements.txt \
--replace "python-slugify<5.0.0" "python-slugify"
'';
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = [ "python-slugify" ];
propagatedBuildInputs = [
GitPython
python-slugify
requests
setuptools
six
urllib3
];
# Requires external resources
doCheck = false;

View File

@ -11585,7 +11585,7 @@ with pkgs;
transcrypt = callPackage ../applications/version-management/git-and-tools/transcrypt { };
transifex-client = python3.pkgs.callPackage ../tools/text/transifex-client { };
transifex-client = python39.pkgs.callPackage ../tools/text/transifex-client { };
translate-shell = callPackage ../applications/misc/translate-shell { };