Merge pull request #188282 from onny/transifex-client
transifex-client: Fix build
This commit is contained in:
commit
e2e40d7098
@ -1,24 +1,36 @@
|
|||||||
{ lib, buildPythonApplication, fetchPypi
|
{ lib
|
||||||
, python-slugify, requests, urllib3, six, setuptools, GitPython }:
|
, buildPythonApplication
|
||||||
|
, fetchPypi
|
||||||
|
, python-slugify
|
||||||
|
, requests
|
||||||
|
, urllib3
|
||||||
|
, six
|
||||||
|
, setuptools
|
||||||
|
, GitPython
|
||||||
|
, pythonRelaxDepsHook
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "transifex-client";
|
pname = "transifex-client";
|
||||||
version = "0.14.4";
|
version = "0.14.4";
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
urllib3 requests python-slugify six setuptools GitPython
|
|
||||||
];
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "11dc95cefe90ebf0cef3749c8c7d85b9d389c05bd0e3389bf117685df562bd5c";
|
sha256 = "11dc95cefe90ebf0cef3749c8c7d85b9d389c05bd0e3389bf117685df562bd5c";
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/transifex/transifex-client/issues/323
|
# https://github.com/transifex/transifex-client/issues/323
|
||||||
prePatch = ''
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||||
substituteInPlace requirements.txt \
|
pythonRelaxDeps = [ "python-slugify" ];
|
||||||
--replace "python-slugify<5.0.0" "python-slugify"
|
|
||||||
'';
|
propagatedBuildInputs = [
|
||||||
|
GitPython
|
||||||
|
python-slugify
|
||||||
|
requests
|
||||||
|
setuptools
|
||||||
|
six
|
||||||
|
urllib3
|
||||||
|
];
|
||||||
|
|
||||||
# Requires external resources
|
# Requires external resources
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -11585,7 +11585,7 @@ with pkgs;
|
|||||||
|
|
||||||
transcrypt = callPackage ../applications/version-management/git-and-tools/transcrypt { };
|
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 { };
|
translate-shell = callPackage ../applications/misc/translate-shell { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user